-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[eg] fix record<unknown> #34100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[eg] fix record<unknown> #34100
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
Can we link to the issue? |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
|
fixes #34053 |
@@ -93,7 +93,8 @@ model DeviceConnectionStateEventProperties { | |||
/** Schema of the Data property of an EventGridEvent for a device telemetry event (DeviceTelemetry). */ | |||
model DeviceTelemetryEventProperties { | |||
/** The content of the message from the device. */ | |||
body: Record<{}>; | |||
#suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of body is object" | |||
body: Record<unknown>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this based off the examples?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so I based this on that the type in the swagger is just object without additionalProperties specified -- let me check the examples
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @@l0lawrence. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
@@ -758,8 +757,7 @@ alias AcsChatThreadBaseEventData = { | |||
createdByCommunicationIdentifier: CommunicationIdentifierModel; | |||
|
|||
/** The thread properties */ | |||
#suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties: object" | |||
properties: Record<unknown>; | |||
properties: Record<{}>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, these should be Record<Record<unknown>>
.
We only want to swap Record to Record<{}> where additionalProperties is an object