-
Notifications
You must be signed in to change notification settings - Fork 50
Add Rpaas_ResourceProvisioningState, improve TopLevelResourcesListByResourceGroup #234
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
Conversation
| const model = utils.getResourceByName(resource) | ||
| const properties = utils.getPropertyOfModel(model,"properties") | ||
| let hasProvisioningState = false | ||
| if (properties && (!properties.type || properties.type === "object")) { |
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.
If type undefined, is it valid?
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, undefined type equals to "object"
| if (!model) { | ||
| return undefined | ||
| } | ||
| if (model.properties) { |
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.
model.properties?.propertyName
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.
No, 'propertyName' is variable
src/typescript/azure-openapi-validator/rules/utilities/resourceUtils.ts
Outdated
Show resolved
Hide resolved
src/typescript/azure-openapi-validator/rules/Rpaas_ResourceProvisioningState.ts
Show resolved
Hide resolved
|
@sanjaiganesh could you help review the PR ? |
Run regression test against rpaasMaster branch , there are totally 17 Rpaas_ResourceProvisioningState rule errors |
doc:
Azure/azure-rest-api-specs#12268