Skip to content

Publish Microsoft.DevCenter 2023-04-01 stable API version#22970

Merged
weidongxu-microsoft merged 3 commits intomainfrom
chrismiller/devcenter-stable
Mar 31, 2023
Merged

Publish Microsoft.DevCenter 2023-04-01 stable API version#22970
weidongxu-microsoft merged 3 commits intomainfrom
chrismiller/devcenter-stable

Conversation

@chrissmiller
Copy link
Contributor

Data Plane API - Pull Request

Copying 2023-01-01-preview API version into 2023-04-01 stable API version. This API has no changes from 2023-01-01-preview, and is copied verbatim (only changes are the API version changes).

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your engagement record.

  • Link to engagement record issue: N/A

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

N/A (no changes from previous approval)

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@chrissmiller chrissmiller requested a review from a team as a code owner March 8, 2023 18:10
@chrissmiller chrissmiller requested review from vicancy and weidongxu-microsoft and removed request for a team March 8, 2023 18:10
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Mar 8, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 1 Errors, 0 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
devcenter.json 2023-04-01(552eaca) 2023-01-01-preview(main)
environments.json 2023-04-01(552eaca) 2023-01-01-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/552eaca3fb1940d5ec303746017d1764861031e6/specification/devcenter/data-plane/Microsoft.DevCenter/stable/2023-04-01/devbox.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-01-01-preview/devbox.json",
"details":"Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.47/common/temp/node_modules/.pnpm/@Azure+oad@0.10.4/node_modules/autorest/dist/app.js" --v2 --input-file=/mnt/vss/_work/1/cross-version-c93b354fd9c14905bb574a8834c4d69b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-01-01-preview/devbox.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=old --output-folder=/tmp\nERROR: Schema violation: No enum match for: operation-location\n - file:///mnt/vss/_work/1/cross-version-c93b354fd9c14905bb574a8834c4d69b/specification/devcenter/data-plane/Microsoft.DevCenter/preview/2023-01-01-preview/devbox.json:715:10 ($.paths["/projects/projectName/users/userId/devboxes/devBoxName:restart"].post["x-ms-long-running-operation-options"]["final-state-via"])\nERROR: Schema violation: No enum match for: operation-location\n - file:///mnt/vss/_work/1/cross-version-c93b354fd9c14905bb574a8834c4d69b/specification"
️️✔️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-2023-04-01 package-2023-04-01(552eaca) default(main)

The following errors/warnings exist before current PR submission:

Rule Message
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DevBoxes' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L369
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L62
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L113
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L164
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L219
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L275
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L423
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L474
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L525
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Environments' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L570
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L212
⚠️ OperationId OperationId for put method should contain both 'Create' and 'Update'
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L476
⚠️ SchemaTypeAndFormat Schema with type: number should specify format
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L540
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L573
⚠️ SchemaTypeAndFormat Schema with type: number should specify format
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L601
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L631
⚠️ SchemaTypeAndFormat Schema with type: number should specify format
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L662
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L692
⚠️ SchemaTypeAndFormat Schema with type: number should specify format
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L720
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L1004
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L1498
⚠️ EnumInsteadOfBoolean 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: Microsoft.DevCenter/stable/2023-04-01/devbox.json#L1796
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.DevCenter/stable/2023-04-01/devcenter.json#L69
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Microsoft.DevCenter/stable/2023-04-01/devcenter.json#L108
⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
Location: Microsoft.DevCenter/stable/2023-04-01/devcenter.json#L247
⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
Location: Microsoft.DevCenter/stable/2023-04-01/devcenter.json#L254
⚠️ SchemaTypeAndFormat Schema with type: number should specify format
Location: Microsoft.DevCenter/stable/2023-04-01/environments.json#L280
⚠️ EnumInsteadOfBoolean 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: Microsoft.DevCenter/stable/2023-04-01/environments.json#L817
⚠️ EnumInsteadOfBoolean 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: Microsoft.DevCenter/stable/2023-04-01/environments.json#L821
️⚠️Avocado: 1 Warnings warning [Detail]
Rule Message
⚠️ CIRCULAR_REFERENCE The JSON file has a circular reference.
readme: specification/devcenter/data-plane/readme.md
json: Microsoft.DevCenter/stable/2023-04-01/devcenter.json
️️✔️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]
️️✔️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.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Mar 8, 2023

Swagger pipeline restarted successfully, please wait for status update in this comment.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Mar 8, 2023

Generated ApiView

Language Package Name ApiView Link
swagger Microsoft.DevCenter https://apiview.dev/Assemblies/Review/2386540d2a2a4f16b0f36f6f84e982f9

@openapi-workflow-bot
Copy link

Hi, @chrissmiller Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com

    @openapi-workflow-bot
    Copy link

    Hi, @chrissmiller, For review efficiency consideration, when creating a new api version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version. For more details refer to the wiki. Or you could onboard API spec pipeline

    @chrissmiller
    Copy link
    Contributor Author

    @anuchandy Is there anything we need to do for getting this merged? All changes have gone through API board review, as this is a copy of our published preview API.

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    I looked one more time and found one minor issue. Is this too late to fix?

    I looked at the prior PRs and it seems we just missed this -- sorry.

    Copy link
    Member

    @mikekistler mikekistler left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Looks good. 👍

    @chrissmiller
    Copy link
    Contributor Author

    @anuchandy We're OK to get this merged whenever :)

    Copy link
    Member

    @weidongxu-microsoft weidongxu-microsoft left a comment

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    LGTM

    @weidongxu-microsoft weidongxu-microsoft added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Mar 31, 2023
    @weidongxu-microsoft weidongxu-microsoft merged commit 1fd32d6 into main Mar 31, 2023
    @weidongxu-microsoft weidongxu-microsoft deleted the chrismiller/devcenter-stable branch March 31, 2023 03:37
    JoshLove-msft pushed a commit to JoshLove-msft/azure-rest-api-specs that referenced this pull request Apr 25, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. CI-MissingBaseCommit data-plane DevCenter new-api-version

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    5 participants