-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Skip validating MSI in PatchBodyParametersSchema #762
Conversation
|
||
// skip validation for MSI(managed service identity), | ||
// as it is being referenced from common-types | ||
if (parameters.schema.description && parameters.schema.description.includes("Managed service identity")) { |
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.
Shouldn't we think about case-sensitive scenarios? I know we're checking from common-types so it shouldn't change.
But why don't we check the parameter name ("ManagedServiceIdentity") instead of the description? #Resolved
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.
because its being referenced, the param name wouldnt be available in the schema
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.
pl use something more deterministic than description. The check should perhaps be done on the properties of the model?
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.
updated.
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.
🕐
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.
This branch has some conflicts. Can you take a look and resolve them?
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.
Please add a brief description to https://github.com/Azure/azure-openapi-validator/blob/main/packages/rulesets/CHANGELOG.md.
I already bumped the version to 2.1.6
, so you (or I) can publish 2.1.6
whenever you want these changes to go live.
It needed to merge from main, but I didn't see any conflicts. #Resolved |
remember Konrad saying he made some changes which will no longer need these changelogs to be added. In reply to: 2573868553 |
I dont see any conflicts. Pulled latest changes too. In reply to: 2573813049 |
@rkmanda can you re-review please. In reply to: 2568197148 |
We don't use the |
This reverts commit a592c07.
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.
This PR skips validation for MSI(managed service identity) as it is being referenced from common-types & has the required field & is being referenced in patch body parameter schema by several RP's & are having to get an exception. So, skipping to avoid that step.