Add 'artifactTags' and 'disclaimer' field for shared gallery and community gallery.#24665
Add 'artifactTags' and 'disclaimer' field for shared gallery and community gallery.#24665Sandido wants to merge 2 commits into
Conversation
|
Hi, @Sandido! Thank you for your pull request. To help get your PR merged: |
Swagger Validation Report
|
| compared swaggers (via Oad v0.10.4)] | new version | base version |
|---|---|---|
| communityGallery.json | 2022-08-03(fb52afc) | 2022-03-03(main) |
| sharedGallery.json | 2022-08-03(fb52afc) | 2022-03-03(main) |
| sharedGallery.json | 2022-08-03(fb52afc) | 2020-09-30(main) |
The following breaking changes are detected by comparison with the latest preview version:
| Rule | Message |
|---|---|
| The new version is missing a client parameter that was found in the old version. Was 'LocationNameParamter' removed or renamed? New: azure-rest-api-specs/blob/fb52afc254262765d6d0929d7ae7a108435fddb7/revision#L1088:2 Old: GalleryRP/preview/2020-09-30/sharedGallery.json#L762:3 |
️⚠️LintDiff: 0 Warnings warning [Detail]
| compared tags (via openapi-validator v2.1.4) | new version | base version |
|---|---|---|
| package-2022-08-03 | package-2022-08-03(fb52afc) | package-2022-08-03(feature/cplat-2022-08-03-2nd) |
The following errors/warnings exist before current PR submission:
| Rule | Message |
|---|---|
ResourceNameRestriction |
The resource name parameter 'publicGalleryName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L37 |
ResourceNameRestriction |
The resource name parameter 'publicGalleryName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L79 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L79 |
ResourceNameRestriction |
The resource name parameter 'publicGalleryName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L124 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L124 |
ResourceNameRestriction |
The resource name parameter 'galleryImageVersionName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L124 |
ResourceNameRestriction |
The resource name parameter 'publicGalleryName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L172 |
ResourceNameRestriction |
The resource name parameter 'publicGalleryName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L217 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L217 |
ResourceNameRestriction |
The resource name parameter 'galleryUniqueName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L93 |
ResourceNameRestriction |
The resource name parameter 'galleryUniqueName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L156 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L156 |
ResourceNameRestriction |
The resource name parameter 'galleryUniqueName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L226 |
ResourceNameRestriction |
The resource name parameter 'galleryUniqueName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L272 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L272 |
ResourceNameRestriction |
The resource name parameter 'galleryUniqueName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L325 |
ResourceNameRestriction |
The resource name parameter 'galleryImageName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L325 |
ResourceNameRestriction |
The resource name parameter 'galleryImageVersionName' should be defined with a 'pattern' restriction. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L325 |
| Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: GalleryRP/stable/2022-08-03/communityGallery.json#L44 |
|
| Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: GalleryRP/stable/2022-08-03/communityGallery.json#L86 |
|
| Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: GalleryRP/stable/2022-08-03/communityGallery.json#L131 |
|
| Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: GalleryRP/stable/2022-08-03/communityGallery.json#L179 |
|
| Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition Location: GalleryRP/stable/2022-08-03/communityGallery.json#L224 |
|
Property location must have 'x-ms-mutability':['read', 'create'] extension defined.Location: GalleryRP/stable/2022-08-03/communityGallery.json#L274 |
|
| Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum. Location: GalleryRP/stable/2022-08-03/communityGallery.json#L548 |
|
Property location must have 'x-ms-mutability':['read', 'create'] extension defined.Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L395 |
|
| Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum. Location: GalleryRP/stable/2022-08-03/sharedGallery.json#L645 |
️⚠️Avocado: 1 Warnings warning [Detail]
| Rule | Message |
|---|---|
| The default tag contains multiple API versions swaggers. readme: specification/compute/resource-manager/readme.md tag: specification/compute/resource-manager/readme.md#tag-package-2022-08-03 |
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView 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.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Swagger Generation Artifacts
|
Generated ApiView
|
|
For ARM review, regarding the LintDiff AvoidAdditionalProperties errors, And these are added as tags that users can modify. These seem to be the exception and allowed scenario for additionalProperties. |
|
LGTM for ARM but some documentation cleanup would be good before merging |
* update * update
Next Steps to MergeDoNotMerge
|
ARM (Control Plane) API Specification Update Pull Request
Purpose of this PR
What's the purpose of this PR? Check all that apply. This is mandatory!
Bringing this PR to the latest release new branch: #23505
Adding the new disclaimer and artifactTags properties to the Gallery RP.
Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can request review from an ARM API Review board.
ARM API changes review
ARMReviewlabel.ARMReviewlabel, if appropriate.If this happens, proceed according to guidance given in GitHub comments also added by the automation.
Breaking change review
If you have any breaking changes as defined in the Breaking Change Policy,
follow the process outlined in the High-level Breaking Change Process doc.
Getting help
and https://aka.ms/ci-fix.