-
Notifications
You must be signed in to change notification settings - Fork 524
Onboard msi for autogeneration #764
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,16 +7,6 @@ | |
| "userAssignedIdentities": { | ||
| "type": "object", | ||
| "properties": { | ||
| "name": { | ||
| "type": "string", | ||
| "description": "The name of the identity resource." | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
| ] | ||
| }, | ||
| "apiVersion": { | ||
| "type": "string", | ||
| "enum": [ | ||
|
|
@@ -25,30 +15,41 @@ | |
| }, | ||
| "location": { | ||
| "type": "string", | ||
| "description": "The Azure region where the identity lives." | ||
| "description": "The Azure region where the resource lives." | ||
| }, | ||
| "name": { | ||
| "type": "string", | ||
| "description": "The name of the identity resource." | ||
| }, | ||
| "tags": { | ||
| "oneOf": [ | ||
| { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "properties": {} | ||
| }, | ||
| { | ||
| "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" | ||
| } | ||
| ], | ||
| "description": "Resource tags" | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "enum": [ | ||
| "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
| ] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "name", | ||
| "type", | ||
| "apiVersion", | ||
| "location" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is location being removed from the required properties?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not been marked as required in your swagger definition: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seems like this "location" is still being removed. However, we marked it as required here: How else can we mark it as required?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I move the "required" field from the Identity definition to the Resource definition, the schema is correctly generated with location as required. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, we have a PR that should address that, using Azure common types: Azure/azure-rest-api-specs#8352 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anthony-c-martin can you try to regenerate? We've updated our swagger to use Azure common types definitions. |
||
| "name", | ||
| "type" | ||
| ], | ||
| "description": "Microsoft.ManagedIdentity/userAssignedIdentities" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": {} | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.