-
Notifications
You must be signed in to change notification settings - Fork 5k
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
wiki for apis and products #21595
wiki for apis and products #21595
Conversation
Hi, @malincrist 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. vscswagger@microsoft.com |
Swagger Validation Report
|
compared swaggers (via Oad v0.10.4)] | new version | base version |
---|---|---|
apimanagement.json | 2022-08-01(e2b8e7d) | 2021-08-01(main) |
apimanagement.json | 2022-08-01(e2b8e7d) | 2022-04-01-preview(main) |
apimapis.json | 2022-08-01(e2b8e7d) | 2021-08-01(main) |
apimapis.json | 2022-08-01(e2b8e7d) | 2022-04-01-preview(main) |
apimproducts.json | 2022-08-01(e2b8e7d) | 2021-08-01(main) |
apimproducts.json | 2022-08-01(e2b8e7d) | 2022-04-01-preview(main) |
definitions.json | 2022-08-01(e2b8e7d) | 2021-08-01(main) |
definitions.json | 2022-08-01(e2b8e7d) | 2022-04-01-preview(main) |
The following breaking changes are detected by comparison with the latest stable version:
Only 30 items are listed, please refer to log for more details.
The following breaking changes are detected by comparison with the latest preview version:
️❌
LintDiff: 3 Errors, 3 Warnings failed [Detail]
compared tags (via openapi-validator v2.0.0) | new version | base version |
---|---|---|
package-2022-08 | package-2022-08(e2b8e7d) | package-2022-08(release-apimangement-2022-08-01) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiWikis_List' does not match the response definition in the individual GET operation 'ApiWiki_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L5344 |
|
GetCollectionResponseSchema |
The response in the GET collection operation 'Documentation_ListByService' does not match the response definition in the individual GET operation 'Documentation_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimdocumentations.json#L37 |
|
GetCollectionResponseSchema |
The response in the GET collection operation 'ProductWikis_list' does not match the response definition in the individual GET operation 'ProductWiki_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimproducts.json#L1682 |
|
Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: ApiManagementGetApiWiki Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L5351 |
||
Since operation response has model definition in array type, it should be of the form '_list'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimproducts.json#L1683 |
||
'GET' operation 'ProductWikis_list' 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.ApiManagement/stable/2022-08-01/apimproducts.json#L1687 |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
Rule | Message |
---|---|
MissingTypeObject |
The schema 'ErrorFieldContract' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimanagement.json#L38 |
MissingTypeObject |
The schema 'ErrorResponse' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimanagement.json#L55 |
MissingTypeObject |
The schema 'ErrorResponseBody' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimanagement.json#L65 |
MissingTypeObject |
The schema 'RegionContract' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimanagement.json#L89 |
MissingTypeObject |
The schema 'RegionListResult' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.ApiManagement/stable/2022-08-01/apimanagement.json#L107 |
GetCollectionResponseSchema |
The response in the GET collection operation 'Api_ListByService' does not match the response definition in the individual GET operation 'Api_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L37 |
CreateOperationAsyncResponseValidation |
An async PUT operation is tracked via Azure-AsyncOperation header. Set 'final-state-via' property to 'azure-async-operation' on 'x-ms-long-running-operation-options' Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L215 |
CreateOperationAsyncResponseValidation |
Only 201 is the supported response code for PUT async response. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L313 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L313 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiRelease_ListByService' does not match the response definition in the individual GET operation 'ApiRelease_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L517 |
RepeatedPathInfo |
The 'apiId' already appears in the path, please don't repeat it in the request body. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L699 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property name. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L781 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property type. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L781 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiOperation_ListByApi' does not match the response definition in the individual GET operation 'ApiOperation_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L871 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiOperationPolicy_ListByOperation' does not match the response definition in the individual GET operation 'ApiOperationPolicy_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L1235 |
GetCollectionResponseSchema |
The response in the GET collection operation 'Tag_ListByOperation' does not match the response definition in the individual GET operation 'Tag_GetByOperation' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L1526 |
GetCollectionResponseSchema |
The response in the GET collection operation 'GraphQLApiResolver_ListByApi' does not match the response definition in the individual GET operation 'GraphQLApiResolver_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L1804 |
GetCollectionResponseSchema |
The response in the GET collection operation 'GraphQLApiResolverPolicy_ListByResolver' does not match the response definition in the individual GET operation 'GraphQLApiResolverPolicy_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L2158 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiPolicy_ListByApi' does not match the response definition in the individual GET operation 'ApiPolicy_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L2514 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiSchema_ListByApi' does not match the response definition in the individual GET operation 'ApiSchema_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L2798 |
CreateOperationAsyncResponseValidation |
An async PUT operation is tracked via Azure-AsyncOperation header. Set 'final-state-via' property to 'azure-async-operation' on 'x-ms-long-running-operation-options' Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L2961 |
CreateOperationAsyncResponseValidation |
Only 201 is the supported response code for PUT async response. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3005 |
LroLocationHeader |
A 202 response should include an Location response header. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3005 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiDiagnostic_ListByService' does not match the response definition in the individual GET operation 'ApiDiagnostic_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3101 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property name. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3365 |
UnSupportedPatchProperties |
The patch operation body parameter schema should not contains property type. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3365 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiIssue_ListByService' does not match the response definition in the individual GET operation 'ApiIssue_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3455 |
RepeatedPathInfo |
The 'apiId' already appears in the path, please don't repeat it in the request body. Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3651 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiIssueComment_ListByService' does not match the response definition in the individual GET operation 'ApiIssueComment_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L3823 |
GetCollectionResponseSchema |
The response in the GET collection operation 'ApiIssueAttachment_ListByService' does not match the response definition in the individual GET operation 'ApiIssueAttachment_Get' . Location: Microsoft.ApiManagement/stable/2022-08-01/apimapis.json#L4128 |
️️✔️
Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️
~[Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
~[Staging] CadlAPIView succeeded [Detail] [Expand]
️️✔️
ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️️✔️
PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Swagger Generation Artifacts
|
Generated ApiView
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
...anagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimdocumentations.json
Outdated
Show resolved
Hide resolved
Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com>
Hi @malincrist, 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. |
Hi @malincrist, Your PR has some issues. Please fix the CI sequentially by following the order of
|
...ation/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimapis.json
Show resolved
Hide resolved
...on/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/definitions.json
Show resolved
Hide resolved
...ation/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimapis.json
Show resolved
Hide resolved
...n/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimproducts.json
Show resolved
Hide resolved
@malincrist - I added a couple of comments, plus there are a couple of questions/comments remaining from @visingla-ms that you haven't responded to. Note, this PR was not on ARM review radar because you didn't remove the ARMChangesRequested label. That's how we know to revisit your PR. Please remove that label to respond, per this comment: #21595 (comment). |
@visingla-ms we have not reviewed the PR in private repo. |
@@ -4415,6 +4415,332 @@ | |||
}, | |||
"x-ms-odata": "./definitions.json#/definitions/TagResourceContract" | |||
} | |||
}, | |||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/wikis/default": { | |||
"head": { |
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.
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.
We have HEAD method for most of our specifications. It is used to set the ETag header.
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.
Looks like I was mistaken , there are a couple of other RPs using HEAD as well. Thanks.
...anagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimdocumentations.json
Show resolved
Hide resolved
...n/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/apimproducts.json
Show resolved
Hide resolved
...on/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/definitions.json
Outdated
Show resolved
Hide resolved
...on/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2022-08-01/definitions.json
Outdated
Show resolved
Hide resolved
@changlong-liu can you please look into this PR and merge this, if things look okay? |
* Release api management 2022 08 01 (#21169) * add base for 2022-08-01 * updates readme.md * update api-version and examples * resolve Go SDK breaking change * update examples to fix model definition Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn> * Adding Resolver Entities to documentation (#21352) * merging in resolver entities * adding resolver updates * fixed policy examples that were missing a policyId param * fixed typo that added a nested properties prop * fixed description for API Resolvers List, filter query * fixed error in definitions for resolvers * fixed example that had an incorrect response definition * added missing json file references * fix for linting errors * ref fixes and undoing bad merge overwrites * fix typo * wiki for apis and products (#21595) * wiki for apis and products * prettier; fixed spellchecks * Fixed spelling * Updated path Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> * code review changes; gihub checks fixes * fixed conact name and paths * added properties back * added contract properties objects * fixed lint * changed example to match the definition * prettier * code review changes * added paths and examples for wiki collections * Added x-ms-pageable * removed count Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> * Add ConfirmConsentCode to APIM RP (#22418) * Update apimauthorizationproviders.json Add ConfirmConsentCode endpoint * Update definitions.json * Create ApiManagementPostAuthorizationConfirmConsentCodeRequest.json * Update definitions.json Remove count property * Update apimauthorizationproviders.json * [2022-08-01] Fix Linter Errors (#22537) * linter errors * prettier * v2 * fix error response duplicate schema * type object * prettier * sync data from current ga version * remove duplicate parameter * type object --------- Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn> Co-authored-by: hoonality <92482069+hoonality@users.noreply.github.com> Co-authored-by: malincrist <92857141+malincrist@users.noreply.github.com> Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> Co-authored-by: Logan Zipkes <44794089+LFZ96@users.noreply.github.com>
* Release api management 2022 08 01 (Azure#21169) * add base for 2022-08-01 * updates readme.md * update api-version and examples * resolve Go SDK breaking change * update examples to fix model definition Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn> * Adding Resolver Entities to documentation (Azure#21352) * merging in resolver entities * adding resolver updates * fixed policy examples that were missing a policyId param * fixed typo that added a nested properties prop * fixed description for API Resolvers List, filter query * fixed error in definitions for resolvers * fixed example that had an incorrect response definition * added missing json file references * fix for linting errors * ref fixes and undoing bad merge overwrites * fix typo * wiki for apis and products (Azure#21595) * wiki for apis and products * prettier; fixed spellchecks * Fixed spelling * Updated path Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> * code review changes; gihub checks fixes * fixed conact name and paths * added properties back * added contract properties objects * fixed lint * changed example to match the definition * prettier * code review changes * added paths and examples for wiki collections * Added x-ms-pageable * removed count Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> * Add ConfirmConsentCode to APIM RP (Azure#22418) * Update apimauthorizationproviders.json Add ConfirmConsentCode endpoint * Update definitions.json * Create ApiManagementPostAuthorizationConfirmConsentCodeRequest.json * Update definitions.json Remove count property * Update apimauthorizationproviders.json * [2022-08-01] Fix Linter Errors (Azure#22537) * linter errors * prettier * v2 * fix error response duplicate schema * type object * prettier * sync data from current ga version * remove duplicate parameter * type object --------- Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn> Co-authored-by: hoonality <92482069+hoonality@users.noreply.github.com> Co-authored-by: malincrist <92857141+malincrist@users.noreply.github.com> Co-authored-by: changlong-liu <59815250+changlong-liu@users.noreply.github.com> Co-authored-by: Logan Zipkes <44794089+LFZ96@users.noreply.github.com>
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.
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.