Skip to content

Conversation

@ericasp16
Copy link
Member

@ericasp16 ericasp16 commented Nov 7, 2023

Data Plane API - Pull Request

Updates prior to the GA of Number Lookup feature. Customers can search any phone number to receive formatting and operator information details about the searched number.
This is one alternative design being considered. The feature team's preferred design can be found here: #26294, and the other alternative can be found here: #26601

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.

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.

❔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 November 7, 2023 20:21
@ericasp16 ericasp16 requested review from johanste and mikekistler and removed request for a team November 7, 2023 20:21
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 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.
compared swaggers (via Oad v0.10.4)] new version base version
phonenumbers.json 2024-03-01(f06c540) 2022-12-01(main)
phonenumbers.json 2024-03-01(f06c540) 2023-05-01-preview(main)
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 2 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-phonenumber-2024-03-01 package-phonenumber-2024-03-01(f06c540) default(main)

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

Rule Message Related RPC [For API reviewers]
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L849
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L891


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/stable/2024-03-01/phonenumbers.json#L20
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L97
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L101
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L159
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L163
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L192
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L234
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L238
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L267
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L331
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L335
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L367
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L412
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L441
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L459
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L515
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L544
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/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/stable/2024-03-01/phonenumbers.json#L586
⚠️ OperationId OperationId for delete method should contain 'Delete'
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L586
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L588
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L603
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L634
⚠️ RequestBodyOptional The body parameter is not marked as required.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L644
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L678
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L707
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: PhoneNumbers/stable/2024-03-01/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/stable/2024-03-01/phonenumbers.json#L743
⚠️ OperationId OperationId for delete method should contain 'Delete'
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L743
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: PhoneNumbers/stable/2024-03-01/phonenumbers.json#L745
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView 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).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 7, 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 Nov 7, 2023

Generated ApiView

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

@ericasp16
Copy link
Member Author

We've settled on an alternate design

@ericasp16 ericasp16 closed this Dec 12, 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.

3 participants