-
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.AlertsManagement to add version preview/2021-08-08-preview #16564
[Hub Generated] Review request for Microsoft.AlertsManagement to add version preview/2021-08-08-preview #16564
Conversation
Hi, @inballeibovitch 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 |
---|---|
Since operation 'Alerts_GetAll' response has model definition 'x-ms-pageable', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L99 |
|
Since operation 'SmartGroups_GetAll' response has model definition 'x-ms-pageable', it should be of the form '_list'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L32 |
|
'GET' operation 'Alerts_MetaData' should use method name 'Get' or Method name start with 'List'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L63 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L792 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L995 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L1075 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L1137 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L506 |
|
Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L678 |
|
The summary and description values should not be same. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L105 |
|
Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: enabled Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L719 |
|
The API version:2019-05-05-preview having been in a preview state over one year , please move it to GA or retire. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L4 |
|
The API version:2019-05-05-preview having been in a preview state over one year , please move it to GA or retire. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L4 |
|
Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: Resolve Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L295 |
|
Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: Resolve Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L224 |
The following errors/warnings exist before current PR submission:
Rule | Message |
---|---|
R4018 - OperationsApiResponseSchema |
The response schema of operations API '/providers/Microsoft.AlertsManagement/operations' does not match the ARM specification. Please standardize the schema. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L30 |
R4037 - MissingTypeObject |
The schema 'errorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L392 |
R4037 - MissingTypeObject |
The schema 'errorResponseBody' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L400 |
R4037 - MissingTypeObject |
The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L424 |
R4037 - MissingTypeObject |
The schema 'ManagedResource' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L445 |
R4037 - MissingTypeObject |
The schema 'PatchProperties' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L797 |
R4037 - MissingTypeObject |
The schema 'PatchObject' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L806 |
R4037 - MissingTypeObject |
The schema 'operation' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L680 |
R4037 - MissingTypeObject |
The schema 'operationsList' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L711 |
R4037 - MissingTypeObject |
The schema 'errorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L730 |
R4037 - MissingTypeObject |
The schema 'errorResponseBody' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L738 |
R4037 - MissingTypeObject |
The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/AlertsManagement.json#L762 |
R4037 - MissingTypeObject |
The schema 'errorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L444 |
R4037 - MissingTypeObject |
The schema 'errorResponseBody' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L452 |
R4037 - MissingTypeObject |
The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.AlertsManagement/preview/2019-05-05-preview/SmartGroups.json#L476 |
Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: enabled Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L800 |
|
The tracked resource, 'ManagedResource', must have a list by resource group operation.(This rule does not apply for tenant level resources.) Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L445 |
|
The tracked resource, 'ManagedResource', must have a list by subscriptions operation. Location: Microsoft.AlertsManagement/preview/2021-08-08-preview/AlertProcessingRules.json#L445 |
️⚠️
Avocado: 1 Warnings warning [Detail]
Rule | Message |
---|---|
The default tag contains multiple API versions swaggers. readme: specification/alertsmanagement/resource-manager/readme.md tag: specification/alertsmanagement/resource-manager/readme.md#tag-package-preview-2021-08 |
️️✔️
~[Staging] ApiReadinessCheck succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
Cross-Version Breaking Changes succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
[Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks. |
Swagger Generation Artifacts
|
Hi @inballeibovitch, Your PR has some issues. Please fix the CI sequentially by following the order of
|
Hi @inballeibovitch, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review. |
/azp run unifiedPipeline |
No pipelines are associated with this pull request. |
@jianyexi Also, lintDiff errors refer to files that were not changed in this PR, can we suppress these errors? |
} | ||
}, | ||
"paths": { | ||
"/providers/Microsoft.AlertsManagement/operations": { |
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.
Why do you remove this path in new version? I don't see you copy previous paths to this version.
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.
@raych1 AlertsManagement.json in the 2019-05-05-preview version contains both the operations API, and alerts APIs. In this version we only change the "alerts processing rule" APIs. So we referenced the 2019 version for the alerts and operation APIs (2019-05-05-preview/AlertsManagement.json) under the package-preview-2021-08.
@inballeibovitch , can you fix |
@inballeibovitch For the lintDiff errors, could you fix the following part, others can be ignored : |
/azp run unifiedPipeline |
No pipelines are associated with this pull request. |
@jianyexi, After I fixed the lintDiff error R4010 - RequiredDefaultResponse, The lint diff check failed with AutoRest exception "swagger-document/individual/schema-validator - FAILED". Is this okay? |
No, should not introduce this error, you might need to double check your change |
@inballeibovitch Since your PR introduced breaking change , could you follow the action at #16564 (comment) to get approval from breaking change review |
…soft.AlertsManagement to add version preview/2021-08-08-preview (#2046) Create to sync Azure/azure-rest-api-specs#16564 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...AzureSDKAutomation:sdkAuto/alertsmanagement?expand=1)
…version preview/2021-08-08-preview (Azure#16564) * rename action rules to alert processing rules * rename in examples * remove alertsmanagement from 2021-08-08 * fix lintdif * update operations descriptions * prettier fix * fix lntDiff error * remove * add default response * add type object * fix descriptions and integer format * fix errors * fix errors
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Changelog
Add a changelog entry for 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
Otherwise your PR may be subject to ARM review requirements. Complete the following:
Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.
-[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
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 any of the following scenarios apply to the PR, request approval from the Breaking Change 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.