Skip to content

Add pageable support for list functions#23308

Merged
anuchandy merged 2 commits intomainfrom
peiliu/addPageableFunctions
Mar 29, 2023
Merged

Add pageable support for list functions#23308
anuchandy merged 2 commits intomainfrom
peiliu/addPageableFunctions

Conversation

@minnieliu
Copy link
Member

@minnieliu minnieliu commented Mar 27, 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 engagement record.

  • Link to 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 Open API document (swagger) if applicable, and the root paths that have been updated.

  • Design Document:
  • Previous Open API 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

@minnieliu minnieliu requested a review from a team as a code owner March 27, 2023 19:46
@minnieliu minnieliu requested review from DominikMe and rysweet and removed request for a team March 27, 2023 19:46
@openapi-workflow-bot
Copy link

Hi, @minnieliu 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 Mar 27, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    compared swaggers (via Oad v0.10.4)] new version base version
    communicationservicesrooms.json 2023-03-31-preview(49ef466) 2023-03-31-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
    package-rooms-2023-03-31-preview package-rooms-2023-03-31-preview(49ef466) package-rooms-2023-03-31-preview(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    ⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L28
    ⚠️ Post201Response Using post for a create operation is discouraged.
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L51
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L132
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L182
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L238
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L284
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L338
    ⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
    Location: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L422
    ️️✔️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: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    INVALID_TYPE Expected type but found type object
    Url: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L358:22
    ExampleUrl: preview/2023-03-31-preview/examples/Participants_Update.json#L18: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 Mar 27, 2023

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Mar 27, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger communication-data-plane-Rooms https://apiview.dev/Assemblies/Review/cc4defddc48747d2983ce2db31a7df1c

    @openapi-workflow-bot
    Copy link

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

    @anuchandy
    Copy link
    Member

    Skipping model validation ref #22540 (comment)

    @anuchandy anuchandy merged commit e5d60da into main Mar 29, 2023
    @anuchandy anuchandy deleted the peiliu/addPageableFunctions branch March 29, 2023 19:26
    JoshLove-msft pushed a commit to JoshLove-msft/azure-rest-api-specs that referenced this pull request Apr 25, 2023
    * Add pageable support for list functions
    
    * nit
    
    ---------
    
    Co-authored-by: Minnie Liu <peiliu@microsoft.com>
    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.

    4 participants