-
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
Adding missing customerName property to fix S360 swagger correctness #23948
Conversation
Hi, @us6193 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. [email protected] |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
billingSubscription.json | 2021-10-01(899d1e6) | 2021-10-01(main) |
️️✔️
Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️
CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️
LintDiff: 0 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.1) | new version | base version |
---|---|---|
package-2021-10 | package-2021-10(899d1e6) | package-2021-10(main) |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L19 |
GetCollectionOnlyHasValueAndNextLink |
Get endpoints for collections of resources must only have the value and nextLink properties in their model.Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L45 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L61 |
ResourceNameRestriction |
The resource name parameter 'billingSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L61 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property name. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L127 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property type. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L127 |
ProvisioningStateSpecifiedForLROPatch |
200 response schema in long running PATCH operation is missing ProvisioningState property. A LRO PATCH operations 200 response schema must have ProvisioningState specified. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L138 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L161 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L219 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L225 |
ResourceNameRestriction |
The resource name parameter 'billingSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L225 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L285 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L291 |
ResourceNameRestriction |
The resource name parameter 'billingSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L291 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L342 |
ResourceNameRestriction |
The resource name parameter 'billingSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L342 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L402 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L408 |
ResourceNameRestriction |
The resource name parameter 'billingSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L408 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L468 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L474 |
PathForPutOperation |
The path for 'put' operation must be under a subscription and resource group. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L516 |
ResourceNameRestriction |
The resource name parameter 'billingAccountName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L516 |
ResourceNameRestriction |
The resource name parameter 'aliasName' should be defined with a 'pattern' restriction. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L516 |
ProvisioningStateSpecifiedForLROPut |
200 response schema in long running PUT operation is missing ProvisioningState property. A LRO PUT operations response schema must have ProvisioningState specified for the 200 and 201 status codes. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L557 |
ProvisioningStateSpecifiedForLROPut |
201 response schema in long running PUT operation is missing ProvisioningState property. A LRO PUT operations response schema must have ProvisioningState specified for the 200 and 201 status codes. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L557 |
PutResponseSchemaDescription |
Any Put MUST contain 200 and 201 return codes. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L589 |
LroErrorContent |
Error response content of long running operations must follow the error schema provided in the common types v2 and above. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L613 |
Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L34 |
|
The response of operation:'BillingSubscriptions_Get' is defined without 'systemData'. Consider adding the systemData to the response. Location: Microsoft.Billing/stable/2021-10-01/billingSubscription.json#L62 |
️⚠️
Avocado: 1 Warnings warning [Detail]
Rule | Message |
---|---|
The default tag contains multiple API versions swaggers. readme: specification/billing/resource-manager/readme.md tag: specification/billing/resource-manager/readme.md#tag-package-2020-05 |
️️✔️
ApiReadinessCheck succeeded [Detail] [Expand]
️⚠️
~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]
API Test is not triggered due to precheck failure. Check pipeline log for details.
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
CadlAPIView succeeded [Detail] [Expand]
️️✔️
TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️
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).
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
TypeSpec Validation succeeded [Detail] [Expand]
Validation passes for TypeSpec Validation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
NewApiVersionRequired reason: |
Hi @us6193, 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. |
@us6193 ,you removed "NewApiVersionRequired" label, so I think you want to update this change in this exist api version, so I added "BreakingChangeReviewRequired" label |
@kazrael2119 I have got the change reviewed and approved can you please help merging the change. thanks |
I can't approve because Swagger BreakingChange is failed |
The swagger breaking change was failing saying there is a new property added compared to previous version for which we got the approval on, I have updated the tags accordingly and hopefully that should fix the issue. Can you help merge this asap as this is going to mark our services Red if this change is not merged sooner |
@us6193 , this change is adding property to a released stable version which is breaking change and should be approved by breaking change review board. You cannot add approval label, neither does me. |
@raych1 Can you help me understand who needs to approve this then? As I already got approval from the review board |
Can you share me where's the approval from breaking change review board? Can you ask Jeffrey or Mike to approve in this PR? |
Got the change approved from breaking change approver: |
ARM API Information (Control Plane)
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo. If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.
To fix the below S360 item:
https://vnext.s360.msftcloudes.com/blades/unifiedplatform?blade=AssignedTo:All~KPI:cf751b97-2c95-420f-baa8-9a16e8643a5b~SLA:1~Forums:All~_loc:UnifiedPlatform&def=&peopleBasedNodes=anr_team;vikdesai_team&tile=S360_ServiceId:a9305e6b-3d6c-477c-b3cf-1a81498037be~_loc:__key__UnifiedPlatform__cf751b97-2c95-420f-baa8-9a16e8643a5b&global=4:a9305e6b-3d6c-477c-b3cf-1a81498037be
https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=503AA620-9782-4684-86AA-7E648EFE46E0
Changelog
Add a changelog entry for this PR by answering the following questions:
Contribution checklist (MS Employees Only):
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 the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.
-[ ] 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. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki.
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 you have any breaking changes as defined in the Breaking Change Policy, request approval from the Breaking Change Review Board.
Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Additional details on the process and office hours are on the Breaking Change Wiki.
NOTE: To update API(s) in public preview for over 1 year (refer to Retirement of Previews)
Please follow the link to find more details on PR review process.