-
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
[Hub Generated] Review request for Microsoft.KeyVault to add version preview/2020-04-01-preview #12619
[Hub Generated] Review request for Microsoft.KeyVault to add version preview/2020-04-01-preview #12619
Conversation
Hi, @jiacheng-L Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com |
Swagger Validation Report
|
Rule | Message |
---|---|
1041 - AddedPropertyInResponse |
The new version has a new property 'metricSpecifications' in response that was not found in the old version. New: Microsoft.KeyVault/preview/2020-04-01-preview/providers.json#L129:7 Old: Microsoft.KeyVault/preview/2020-04-01-preview/providers.json#L129:7 |
️⚠️
LintDiff: 3 Warnings warning [Detail]
- Linted configuring files (Based on source branch, openapi-validator v1.7.0 , classic-openapi-validator v1.1.5 )
- Linted configuring files (Based on target branch, openapi-validator v1.7.0 , classic-openapi-validator v1.1.5 )
Rule | Message |
---|---|
Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: ignoreMissingVnetServiceEndpoint New: Microsoft.KeyVault/preview/2020-04-01-preview/keyvault.json#L1735 |
|
Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: fillGapWithZero New: Microsoft.KeyVault/preview/2020-04-01-preview/providers.json#L211 |
|
Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: toBeExportedForShoebox New: Microsoft.KeyVault/preview/2020-04-01-preview/providers.json#L232 |
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
Swagger Generation Artifacts
|
}, | ||
"ignoreMissingVnetServiceEndpoint": { | ||
"type": "boolean", | ||
"description": "Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured" |
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.
Nit: missing punctuation, which most other descriptions have. This also improves the generated SDK documentation.
"description": "Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured" | |
"description": "Property to specify whether NRP will ignore the check if parent subnet has serviceEndpoints configured." |
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.
Several other inconsistencies in changes contained within 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.
Sure. I will fix the missing punctuation and space
}, | ||
"unit": { | ||
"type": "string", | ||
"description": "The metric unit. Possible values include: 'Bytes', 'Count', 'Milliseconds'" |
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.
Should this and other constrained properties be enums to better support SDKs and validation by the CLI?
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.
Or is this output only?
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, this one is only used in 200 response.
}, | ||
"displayName": { | ||
"type": "string", | ||
"description":"Display name of dimension" |
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.
Missing space. I only mention it since the prettier check may fail.
"description": "Display description of Metric specification." | ||
}, | ||
"unit": { | ||
"type": "string", |
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.
just curious, why use string instead of enum?
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.
The whole specification metric is read only for customer. We expose these metrics via public metrics REST API. The values of these properties are possible values. They are not the only values as far as I know.
}, | ||
"aggregationType": { | ||
"type": "string", | ||
"description": "The metric aggregation type. Possible values include: 'Average', 'Count', 'Total'." |
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.
same as above
}, | ||
"supportedAggregationTypes": { | ||
"type": "array", | ||
"description": "The supported aggregation types for the metrics.", |
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.
what's difference between supportedAggregationTypes
and aggregationType
? Will it be clear to define aggregationType
as enum definition, then type of supportedAggregationTypes
be aggregationType
?
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.
As far as I know, SupportedAggregationTypes is a composite of the Saturation metric as insights does not have a mechanism in which we can specify which sampling type to present to the customer.
This PR is to fix swagger quality issue in s360. These two properties are already defined in our source code. It should not be a good way to update the source code at this moment.
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.
thanks for the context
"type": "boolean", | ||
"description": "Property to specify whether to fill gap with zero." | ||
}, | ||
"internalMetricName": { |
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 this readonly?
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.
The whole block I added in the providers.json is read-only.
hi @ArcturusZhang could you pls help to confirm impact to Go SDK? thanks. |
Go SDK impact is mentioned here: #12475 |
|
@yungezz this PR will not introduce breaking changes to go SDK. |
For python, the PR is ok |
…preview/2020-04-01-preview (Azure#12619)
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Changelog
Please ensure to add changelog with this PR by answering the following questions.
Contribution checklist:
If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist
Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.
Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.
If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.