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

Sasavin/add template api spec #24424

Closed
wants to merge 14 commits into from
Closed

Sasavin/add template api spec #24424

wants to merge 14 commits into from

Conversation

SamuelSA
Copy link
Member

@SamuelSA SamuelSA commented Jun 13, 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

@SamuelSA SamuelSA requested a review from a team as a code owner June 13, 2023 17:49
@SamuelSA SamuelSA requested review from DominikMe and weidongxu-microsoft and removed request for a team June 13, 2023 17:49
@openapi-workflow-bot
Copy link

Hi, @SamuelSA 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-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 13, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️❌LintDiff: 3 Errors, 27 Warnings failed [Detail]
    compared tags (via openapi-validator v2.1.3) new version base version
    package-2023-02-01-preview package-2023-02-01-preview(6d8c9ad) default(main)

    [must fix]The following errors/warnings are introduced by current PR:

    Rule Message Related RPC [For API reviewers]
    LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10
    XmsParameterLocation The parameter 'ApiVersionParameter' is defined in global parameters section without 'x-ms-parameter-location' extension. This would add the parameter as the client property. Please ensure that this is exactly you want. If so, apply the extension 'x-ms-parameter-location': 'client'. Else, apply the extension 'x-ms-parameter-location': 'method'.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L408
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L430
    ⚠️ OperationSummaryOrDescription Operation should have a summary or description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10
    ⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10
    ⚠️ ParameterDescription Parameter should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L25
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L25
    ⚠️ LroHeaders A 202 response should include an Operation-Location response header.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L34
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L40
    ⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L51
    ⚠️ GetInOperationName 'GET' operation 'Stream_DownloadMedia' 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: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L56
    ⚠️ OperationId OperationId for get method should contain 'Get' or 'list'
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L56
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L61
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L80
    ⚠️ PageableOperation Based on the response model schema, operation 'TemplateV2_List' might be pageable. Consider adding the x-ms-pageable extension.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L91
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L91
    ⚠️ XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L91
    ⚠️ ParameterDescription Parameter should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L101
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L101
    ⚠️ ParameterDescription Parameter should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L108
    ⚠️ ParameterDescription Parameter should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L114
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L130
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L142
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L171
    ⚠️ PropertyDescription Property should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L184
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L289
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L361
    ⚠️ PropertyType Property should have a defined type.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L387
    ⚠️ SecurityDefinitionDescription Security definition should have a description.
    Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L417
    ️❌Avocado: 2 Errors, 0 Warnings failed [Detail]
    Rule Message
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: communication/data-plane/Messages/readme.md
    json: preview/2023-02-01-preview/examples/DownloadMedia.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: communication/data-plane/Messages/readme.md
    json: preview/2023-02-01-preview/examples/SendMessage.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]
    ️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
    ️❌ModelValidation: 3 Errors, 0 Warnings failed [Detail]
    Rule Message
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in NotificationMessages_SendMessage.
    Url: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10:15
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in Stream_DownloadMedia.
    Url: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L51:14
    XMS_EXAMPLE_NOTFOUND_ERROR x-ms-example not found in TemplateV2_List.
    Url: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L91:14
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️❌PrettierCheck: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    HowToFix Code style issues found
    path: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json
    ️️✔️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 Jun 13, 2023

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jun 13, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger communication-data-plane-Messages https://apiview.dev/Assemblies/Review/116bce92f4244a7f88268043f5acf35d

    @openapi-workflow-bot
    Copy link

    Hi @SamuelSA, 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.

    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.

    This looks good for preview, but please consider the comments captured in #24216.

    @mikekistler mikekistler added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Jun 13, 2023
    @ghost
    Copy link

    ghost commented Jul 2, 2023

    Hi, @SamuelSA. 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.

    @microsoft-github-policy-service
    Copy link
    Contributor

    Hi, @SamuelSA. The PR will be closed since the PR has no update for 28 days. If you still need the PR review to proceed, please reopen it and @ mention PR assignee.

    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-FixRequiredOnFailure data-plane
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    [IC3 ACS Cross Platform Messaging ] API Review [IC3 ACS Cross Platform Messaging ] API Review
    6 participants