Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3134,7 +3134,8 @@
"TwinChangeEvents",
"DeviceLifecycleEvents",
"DeviceJobLifecycleEvents",
"DigitalTwinChangeEvents"
"DigitalTwinChangeEvents",
"DeviceConnectionStateEvents"
],
"type": "string",
"x-ms-enum": {
Expand Down Expand Up @@ -4240,8 +4241,18 @@
"readOnly": true
},
"type": {
"description": "Identity type. Only allowed values are SystemAssigned and UserAssigned. Comma separated if both for ex: SystemAssigned,UserAssigned",
"type": "string"
"description": "The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.",
"type": "string",
"enum": [
"SystemAssigned",
"UserAssigned",
"SystemAssigned,UserAssigned",
"None"
],
"x-ms-enum": {
"name": "ResourceIdentityType",
"modelAsString": true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modelAsString should be set to false as mentioned in above example.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RamyasreeChakka we are setting modelAsString : true, as other enums in our swagger were using in that way and to maintain that consistent behaviour.

Copy link
Member

@RamyasreeChakka RamyasreeChakka Feb 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nimengan - ARM common definitions are present here:


These are the guidance for RPs. In the common definition also, for identity -> modelAsString is set to false to allow strict validation. I would leave it up to you to make the call here. Signing off from ARM side.

For more details: http://azure.github.io/autorest/extensions/#x-ms-enum

}
},
"userAssignedIdentities": {
"type": "object",
Expand Down