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

SIP-Update formatting of security section #23952

Merged
merged 2 commits into from
May 18, 2023
Merged

Conversation

dzeliar
Copy link
Member

@dzeliar dzeliar commented May 12, 2023

Data Plane API - Pull Request

Update formatting of security section to properly generate documentation. In documentation review process we discovered apiKey authentication has been missing. This PR updates the definition to include both user_impersonation & apiKey.

API Info: The Basics

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

No functional changes

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

@dzeliar dzeliar requested a review from a team as a code owner May 12, 2023 09:46
@dzeliar dzeliar requested review from JeffreyRichter and MushMal and removed request for a team May 12, 2023 09:46
@openapi-workflow-bot
Copy link

Hi, @dzeliar 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 May 12, 2023

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    compared swaggers (via Oad v0.10.4)] new version base version
    communicationservicessiprouting.json 2023-04-01-preview(e8922cc) 2023-04-01-preview(main)
    communicationservicessiprouting.json 2023-03-01(e8922cc) 2023-03-01(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.1.1) new version base version
    package-preview-2023-04 package-preview-2023-04(e8922cc) package-preview-2023-04(main)
    package-2023-03 package-2023-03(e8922cc) package-2023-03(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    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: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L530
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L578
    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: SipRouting/stable/2023-03-01/communicationservicessiprouting.json#L211
    HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
    Location: SipRouting/stable/2023-03-01/communicationservicessiprouting.json#L259
    ⚠️ PageableOperation Based on the response model schema, operation 'SipRouting_Get' might be pageable. Consider adding the x-ms-pageable extension.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L13
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L13
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L75
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L112
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L136
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L152
    ⚠️ 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: SipRouting/preview/2023-04-01-preview/communicationservicessiprouting.json#L407
    ⚠️ PageableOperation Based on the response model schema, operation 'SipRouting_Get' might be pageable. Consider adding the x-ms-pageable extension.
    Location: SipRouting/stable/2023-03-01/communicationservicessiprouting.json#L13
    ⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
    Location: SipRouting/stable/2023-03-01/communicationservicessiprouting.json#L13
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: SipRouting/stable/2023-03-01/communicationservicessiprouting.json#L69
    ️️✔️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 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.
    ️️✔️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 May 12, 2023

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 12, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger communication-data-plane-SipRouting https://apiview.dev/Assemblies/Review/49d1ea9ab2b14f1a96fc32d9944f82c5

    @dzeliar
    Copy link
    Member Author

    dzeliar commented May 12, 2023

    /azp run

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @JeffreyRichter
    Copy link
    Member

    • Do not put a slash in the trunks/health enum value - this won't be representable in language SDKs. Come up with another way of expressing this. An underscore would work or camel casing: trunksHealth.

    • The default error must use Azure's default error JSON response. It looks like it's just a "string" right now.

    • For testRoutesWithNumber. Some languages will have a problem with a plus sign (+) in front of the phone number as they treat + as space. See example

    @dzeliar
    Copy link
    Member Author

    dzeliar commented May 15, 2023

    @hello @JeffreyRichter, thank you for review, we'll keep your notes for the next iteration of preview of this API.
    This PR changes security section (latest stable&preview versions), which had to be modified as it generated incorrect documentation. Can we please get an approval for these changes as we need to go officially GA with already merged stable version? Thank you

    @dzeliar
    Copy link
    Member Author

    dzeliar commented May 18, 2023

    Hello @JeffreyRichter, did you have a change to have a look at my previous comment? Is this change possible? Thank you

    @JeffreyRichter
    Copy link
    Member

    I approved this PR

    @tjprescott tjprescott merged commit 69a5b86 into main May 18, 2023
    @tjprescott tjprescott deleted the dusanzeliar/updateFormating branch May 18, 2023 21:50
    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