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

update values of OperatorNumberType enum #24052

Merged
merged 1 commit into from
May 18, 2023

Conversation

ericasp16
Copy link
Member

Data Plane API - Pull Request

Update enum values to match the service

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.

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.

❔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

@ericasp16 ericasp16 requested a review from a team as a code owner May 18, 2023 17:49
@ericasp16 ericasp16 requested review from tg-msft and bexxx and removed request for a team May 18, 2023 17:49
@openapi-workflow-bot
Copy link

Hi, @ericasp16 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 18, 2023

    Swagger Validation Report

    ️❌BreakingChange: 2 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    phonenumbers.json 2023-05-01-preview(3b1c640) 2023-05-01-preview(main)
    Rule Message
    1019 - RemovedEnumValue The new version is removing enum value(s) 'paging, freePhone, specialServices, testNumber, voip' from the old version.
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1504:9
    Old: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1504:9
    1020 - AddedEnumValue The new version is adding enum value(s) 'unknown, other' from the old version.
    New: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1504:9
    Old: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L1504:9
    ️️✔️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.2) new version base version
    package-phonenumber-2023-05-01-preview package-phonenumber-2023-05-01-preview(3b1c640) package-phonenumber-2023-05-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
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L20
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L97
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L101
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L159
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L163
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L192
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L234
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L238
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L267
    ⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L331
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L335
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L367
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L412
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L441
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L459
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L515
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L544
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L568
    ⚠️ DeleteInOperationName 'DELETE' operation 'PhoneNumbers_CancelOperation' should use method name 'Delete'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L586
    ⚠️ OperationId OperationId for delete method should contain 'Delete'
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L586
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L588
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L603
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L634
    ⚠️ RequestBodyOptional The body parameter is not marked as required.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L644
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L678
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L707
    ⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L725
    ⚠️ DeleteInOperationName 'DELETE' operation 'PhoneNumbers_ReleasePhoneNumber' should use method name 'Delete'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L743
    ⚠️ OperationId OperationId for delete method should contain 'Delete'
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L743
    ⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
    Location: PhoneNumbers/preview/2023-05-01-preview/phonenumbers.json#L745
    ️️✔️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 18, 2023

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

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented May 18, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger communication-data-plane-PhoneNumbers https://apiview.dev/Assemblies/Review/50be0202600e4d0b8d1053536c6c4a6f

    @AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane labels May 18, 2023
    @openapi-workflow-bot
    Copy link

    Hi @ericasp16, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.
    Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

    @ericasp16
    Copy link
    Member Author

    "Breaking changes" are expected, they are not actually breaking. This feature has not even shipped to private preview yet, the change in this review was intended to go into the initial check-in, but the final commit didn't push properly necessitating this additional review.

    @anuchandy anuchandy added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label May 18, 2023
    Copy link
    Member

    @anuchandy anuchandy left a comment

    Choose a reason for hiding this comment

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

    As Erica mentioned, this is a correction to enum to reflect the service contract, and the API is not shipped yet, hence approving.

    @anuchandy anuchandy merged commit 97a3d07 into main May 18, 2023
    @anuchandy anuchandy deleted the ericasp/update-operator-number-type-values branch May 18, 2023 18:31
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants