Skip to content
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

[Azure Maps] Data V2 and Data Registry API description update #23594

Merged

Conversation

chcmsft
Copy link
Contributor

@chcmsft chcmsft commented Apr 18, 2023

Data Plane API - Pull Request

API Info: The Basics

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

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

  • Design Document:
  • Previous API Spec Doc:
  • Updated paths:

❔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

@chcmsft chcmsft requested a review from a team as a code owner April 18, 2023 02:27
@chcmsft chcmsft requested review from JeffreyRichter and mikekistler and removed request for a team April 18, 2023 02:27
@openapi-workflow-bot
Copy link

Hi, @chcmsft 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. [email protected]

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    compared swaggers (via Oad v0.10.4)] new version base version
    data.json 2.0(647e9ca) 2.0(main)
    dataregistry.json 2022-12-01-preview(647e9ca) 2022-12-01-preview(main)
    ️️✔️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
    2.0-preview 2.0-preview(647e9ca) 2.0-preview(main)
    package-preview-2022-09 package-preview-2022-09(647e9ca) package-preview-2022-09(main)
    2022-12-01-preview 2022-12-01-preview(647e9ca) 2022-12-01-preview(main)

    The following errors/warnings exist before current PR submission:

    Only 30 items are listed, please refer to log for more details.

    Rule Message
    LongRunningResponseStatusCodeDataPlane A 'post' operation 'Data_Upload' with x-ms-long-running-operation extension must have a valid terminal success status code 200 or 201 or 202 or 204.
    Location: Creator/preview/2.0/data.json#L128
    LongRunningResponseStatusCodeDataPlane A 'post' operation 'Data_Upload' with x-ms-long-running-operation extension must have a valid terminal success status code 200 or 201 or 202 or 204.
    Location: Creator/preview/2.0/data.json#L128
    LongRunningResponseStatusCodeDataPlane A 'put' operation 'Data_Update' with x-ms-long-running-operation extension must have a valid terminal success status code 200 or 201 or 202.
    Location: Creator/preview/2.0/data.json#L212
    LongRunningResponseStatusCodeDataPlane A 'put' operation 'Data_Update' with x-ms-long-running-operation extension must have a valid terminal success status code 200 or 201 or 202.
    Location: Creator/preview/2.0/data.json#L212
    OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'DataRegistry' 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: DataRegistry/preview/2022-12-01-preview/dataregistry.json#L143
    ⚠️ VersionConvention API version should be a date in YYYY-MM-DD format, optionally suffixed with '-preview'.
    Location: Creator/preview/2.0/data.json#L5
    ⚠️ VersionConvention API version should be a date in YYYY-MM-DD format, optionally suffixed with '-preview'.
    Location: Creator/preview/2.0/data.json#L5
    ⚠️ ParameterDefaultNotAllowed A required parameter should not specify a default value.
    Location: Creator/preview/2.0/data.json#L148
    ⚠️ ParameterDefaultNotAllowed A required parameter should not specify a default value.
    Location: Creator/preview/2.0/data.json#L148
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Creator/preview/2.0/data.json#L174
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Creator/preview/2.0/data.json#L177
    ⚠️ PageableOperation Based on the response model schema, operation 'Data_List' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Creator/preview/2.0/data.json#L182
    ⚠️ PageableOperation Based on the response model schema, operation 'Data_List' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Creator/preview/2.0/data.json#L182
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Creator/preview/2.0/data.json#L182
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Creator/preview/2.0/data.json#L182
    ⚠️ ParameterDefaultNotAllowed A required parameter should not specify a default value.
    Location: Creator/preview/2.0/data.json#L194
    ⚠️ ParameterDefaultNotAllowed A required parameter should not specify a default value.
    Location: Creator/preview/2.0/data.json#L194
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Creator/preview/2.0/data.json#L205
    ⚠️ ErrorResponse The error property in the error response schema should be required.
    Location: Creator/preview/2.0/data.json#L205
    ⚠️ ErrorResponse Error schema should define code and message properties as required.
    Location: Creator/preview/2.0/data.json#L205
    ️️✔️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: 6 Errors, 0 Warnings failed [Detail]
    Rule Message
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 200 for operation Data_Upload has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L167:22
    ExampleUrl: 2.0/examples/data/Data_Upload.json#L26:16
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 409 for operation Data_Upload has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L167:22
    ExampleUrl: 2.0/examples/data/Data_Upload.json#L26:16
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 200 for operation Data_Update has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L247:22
    ExampleUrl: 2.0/examples/data/Data_Update.json#L26:16
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 409 for operation Data_Update has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L247:22
    ExampleUrl: 2.0/examples/data/Data_Update.json#L26:16
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 200 for operation Data_GetOperation has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L353:22
    ExampleUrl: 2.0/examples/data/Data_GetOperationStillRunning.json#L7:16
    RESPONSE_SCHEMA_NOT_IN_SPEC Response statusCode 200 for operation Data_GetOperation has response body provided in the example, however the response does not have a "schema" defined in the swagger spec.
    Url: Creator/preview/2.0/data.json#L353:22
    ExampleUrl: 2.0/examples/data/Data_GetOperation.json#L7:16
    ️️✔️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.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Apr 18, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger maps-data-plane-Creator https://apiview.dev/Assemblies/Review/b2c0ac59547e48cfa0e45470d407fe5a
    Swagger maps-data-plane-DataRegistry https://apiview.dev/Assemblies/Review/ac96b6f082e048e5a6a79cf46209c148

    @openapi-workflow-bot
    Copy link

    Hi @chcmsft, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @ghost
    Copy link

    ghost commented May 7, 2023

    Hi, @chcmsft. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

    @chcmsft
    Copy link
    Contributor Author

    chcmsft commented May 8, 2023

    @tjprescott Can you merge this? The model validation issues are pre-existing.

    @tjprescott
    Copy link
    Member

    @chcmsft I cannot merge PRs that aren't green.

    @chcmsft
    Copy link
    Contributor Author

    chcmsft commented May 9, 2023

    @lmazuel Can you help to merge? The model validation issues are preexisting.

    @lmazuel lmazuel merged commit 3a4c77d into Azure:main May 10, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants