-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
EventGrid
2022-06-15
: refactor parentType
into a parameter and reference it correctly for all URI paths in the swagger
#23562
base: main
Are you sure you want to change the base?
Conversation
…ll URI paths in the swagger
Hi, @stephybun 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 |
---|---|---|
EventGrid.json | 2022-06-15(caaa752) | 2022-06-15(main) |
Rule | Message |
---|---|
1048 - AddedXmsEnum |
The new version adds a x-ms-enum extension. New: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L6794:9 Old: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L6857:11 |
1048 - AddedXmsEnum |
The new version adds a x-ms-enum extension. New: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L6856:9 Old: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L6923:11 |
️️✔️
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.0.0) | new version | base version |
---|---|---|
package-2022-06 | package-2022-06(caaa752) | package-2022-06(main) |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
PutGetPatchResponseSchema |
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/channels/{channelName} has different responses for PUT/GET/PATCH operations. The PUT/GET/PATCH operations must have same schema response. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L19 |
ResourceNameRestriction |
The resource name parameter 'partnerNamespaceName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L19 |
ResourceNameRestriction |
The resource name parameter 'channelName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L19 |
DeleteOperationAsyncResponseValidation |
An async DELETE operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L151 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L195 |
ResourceNameRestriction |
The resource name parameter 'partnerNamespaceName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L278 |
ResourceNameRestriction |
The resource name parameter 'partnerNamespaceName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L339 |
ResourceNameRestriction |
The resource name parameter 'channelName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L339 |
PutGetPatchResponseSchema |
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName} has different responses for PUT/GET/PATCH operations. The PUT/GET/PATCH operations must have same schema response. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L398 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L398 |
CreateOperationAsyncResponseValidation |
An async PUT operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L449 |
DeleteOperationAsyncResponseValidation |
An async DELETE operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L511 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L548 |
LroPatch202 |
The async patch operation should return 202. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L609 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L732 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L784 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L847 |
ResourceNameRestriction |
The resource name parameter 'domainTopicName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L847 |
CreateOperationAsyncResponseValidation |
An async PUT operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L905 |
DeleteOperationAsyncResponseValidation |
An async DELETE operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L963 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1007 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1025 |
ResourceNameRestriction |
The resource name parameter 'topicName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1086 |
ResourceNameRestriction |
The resource name parameter 'eventSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1086 |
ResourceNameRestriction |
The resource name parameter 'domainName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1145 |
ResourceNameRestriction |
The resource name parameter 'eventSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1145 |
ResourceNameRestriction |
The resource name parameter 'eventSubscriptionName' should be defined with a 'pattern' restriction. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1204 |
CreateOperationAsyncResponseValidation |
An async PUT operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1283 |
DeleteOperationAsyncResponseValidation |
An async DELETE operation must set long running operation options 'x-ms-long-running-operation-options' Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1373 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.EventGrid/stable/2022-06-15/EventGrid.json#L1408 |
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
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: 20 Errors, 0 Warnings failed [Detail]
️️✔️
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
|
Thank you for your contribution stephybun! We will review the pull request and get back to you soon. |
Hi @stephybun, Your PR has some issues. Please fix the CI sequentially by following the order of
|
Hi @stephybun, 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. |
@microsoft-github-policy-service agree company="HashiCorp" |
Next Steps to MergeNext steps that must be taken to merge this PR:
|
Some of the URI paths in the swagger define
parentType
as an enum whereas other segments mark it as a string value.This fixes that.