Update Details property of Recommended Actions API to resolve Swagger Model Validation#31062
Conversation
Next Steps to Merge✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge. |
Generated ApiView
|
specification/sql/resource-manager/Microsoft.Sql/preview/2024-08-01-preview/ServerAdvisors.json
Show resolved
Hide resolved
...fication/sql/resource-manager/Microsoft.Sql/preview/2024-08-01-preview/DatabaseAdvisors.json
Outdated
Show resolved
Hide resolved
| "description": "Resource type.", | ||
| "type": "string", | ||
| "readOnly": true | ||
| } |
There was a problem hiding this comment.
it was referring to common-types ProxyResource. Why to remove now as that is the suggested way
...fication/sql/resource-manager/Microsoft.Sql/preview/2024-08-01-preview/DatabaseAdvisors.json
Outdated
Show resolved
Hide resolved
| "additionalProperties": true, | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| }, |
There was a problem hiding this comment.
Use of additionalProperties is not allowed for properties owned by the service. The only time its ok to use it is when the properties are pass thru (user defined) and not subject to any validations. Please make this an array or provide an explanation for why you need this.
There was a problem hiding this comment.
This has been used since the inception of the service, additionalProperties is already being used and has been for the last 9 years, I just wanted to fix the ModelValidation error, as the SQL ARM API team asked me to do that.
| "additionalProperties": true, | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| }, |
There was a problem hiding this comment.
Use of additionalProperties is not allowed for properties owned by the service. The only time its ok to use it is when the properties are pass thru (user defined) and not subject to any validations. Please make this an array or provide an explanation for why you need this.
There was a problem hiding this comment.
This has been used since the inception of the service, additionalProperties is already being used and has been for the last 9 years, I just wanted to fix the ModelValidation error, as the SQL ARM API team asked me to do that.
| "additionalProperties": true, | ||
| "additionalProperties": { | ||
| "type": "string" | ||
| }, |
There was a problem hiding this comment.
Use of additionalProperties is not allowed for properties owned by the service. The only time its ok to use it is when the properties are pass thru (user defined) and not subject to any validations. Please make this an array or provide an explanation for why you need this.
There was a problem hiding this comment.
This has been used since the inception of the service, additionalProperties is already being used and has been for the last 9 years, I just wanted to fix the ModelValidation error, as the SQL ARM API team asked me to do that.
|
Swagger ModelValidation is still failing as this PR aimed to solve such errors. Please fix these too. |
…uroskrstic/fix-database-recommended-action-swagger
|
Approving as these are existing ones |
4d5d694
into
Azure:release-sql-Microsoft.Sql-2024-08-01-preview

…rror
ARM (Control Plane) API Specification Update Pull Request
Tip
Overwhelmed by all this guidance? See the
Getting helpsection at the bottom of this PR description.PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.
Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!
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 proceed to the diagram Step 2, "ARM API changes review", for this PR.
Additional information
Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the
Generated ApiViewcomment added to this PR. You can use ApiView to show API versions diff.Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.
Getting help
Purpose of this PRandDue diligence checklist.write accessper aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositoriesNext Steps to Mergecomment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.and https://aka.ms/ci-fix.
queuedstate, please add a comment with contents/azp run.This should result in a new comment denoting a
PR validation pipelinehas started and the checks should be updated after few minutes.