-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Grlin/Adding Principal Type to RA #3737
Conversation
Can one of the admins verify this patch? |
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-javaThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
@annatisch is it ok if i take this PR? I'm working with @grlin already on this. |
Thanks @anuchandy! :) |
"principalType": { | ||
"type": "string", | ||
"description": "The principal type of the assigned principal ID, e.g. user, service principal." | ||
}, |
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 there a list of known values for principal types?
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.
Yes, there is. Where should I include this?
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.
you can define it as an openapi enum type, like
"principalType": {
"type": "string",
"description": "The principal type of the assigned principal ID, e.g. user, service principal",
"enum": [
"User",
"<other-value1>",
"<other-value2>"
],
"x-ms-enum": {
"name": "PrincipalType",
"modelAsString": true|false
}
}
List all the possible values under principalType::enum array.
If this list is limited and not going to change at least in this api-version then use "modelAsString":false
otherwise "modelAsString": true
.
Also is this a readonly property? then you can mark it as readonly: true
as well.
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.
How can I update this PR?
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.
I've pushed the commit
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger