-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Changing API version and renaming to Messages #22450
Merged
ajpeacock0
merged 1 commit into
Azure:gelli/addMessagingApiSpec
from
ajpeacock0:ajpeacock0/xplatmsg/privprev_api_update
Feb 3, 2023
Merged
Changing API version and renaming to Messages #22450
ajpeacock0
merged 1 commit into
Azure:gelli/addMessagingApiSpec
from
ajpeacock0:ajpeacock0/xplatmsg/privprev_api_update
Feb 3, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ajpeacock0
requested review from
JeffreyRichter and
MushMal
and removed request for
a team
February 3, 2023 19:09
Hi, @ajpeacock0 Thanks for your PR. I am workflow bot for review process. Here are some small tips. Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com |
Swagger Validation Report
|
compared tags (via openapi-validator v2.0.0) | new version | base version |
---|---|---|
package-2023-02-01-preview | package-2023-02-01-preview(06ca30c) | default(gelli/addMessagingApiSpec) |
default | default(06ca30c) | default(gelli/addMessagingApiSpec) |
[must fix]The following errors/warnings are introduced by current PR:
Rule | Message | Related RPC [For API reviewers] |
---|---|---|
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#L228 |
|
HostParametersValidation |
The host parameter must be typed 'type 'string', format 'url''. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L250 |
|
Operations with a 202 response should specify x-ms-long-running-operation: true .Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10 |
||
Operation should have a summary or description. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10 |
||
Operation might be pageable. Consider adding the x-ms-pageable extension. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L10 |
||
Parameter should have a description. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L25 |
||
A 202 response should include an Operation-Location response header. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L35 |
||
Error response should contain a x-ms-error-code header. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L41 |
||
Operation should have a summary or description. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L57 |
||
'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#L61 |
||
OperationId for get method should contain 'Get' or 'list' Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L61 |
||
Parameter should have a description. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L66 |
||
Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L66 |
||
Error response should contain a x-ms-error-code header. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L83 |
||
Security definition should have a description. Location: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L237 |
️❌
Avocado: 3 Errors, 0 Warnings failed [Detail]
Rule | Message |
---|---|
MISSING_README |
Can not find readme.md in the folder. If no readme.md file, it will block SDK generation. folder: data-plane/Messaging/preview/2022-06-30-preview |
MISSING_README |
Can not find readme.md in the folder. If no readme.md file, it will block SDK generation. folder: Messaging/preview/2022-06-30-preview/examples |
MISSING_README |
Can not find readme.md in the folder. If no readme.md file, it will block SDK generation. folder: specification/communication/data-plane/Messaging |
️️✔️
SwaggerAPIView succeeded [Detail] [Expand]
️️✔️
CadlAPIView succeeded [Detail] [Expand]
️❌
ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule | Message |
---|---|
RESPONSE_BODY_NOT_IN_EXAMPLE |
Response statusCode 200 for operation Stream_DownloadMedia has no response body provided in the example, however the response does have a "schema" defined in the swagger spec. Url: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L76:22 ExampleUrl: preview/2023-02-01-preview/examples/DownloadMedia.json#L8:16 |
RESPONSE_BODY_NOT_IN_EXAMPLE |
Response statusCode 200 for operation Stream_DownloadMedia has no response body provided in the example, however the response does have a "schema" defined in the swagger spec. Url: Messages/preview/2023-02-01-preview/CommunicationServicesMessages.json#L76:22 ExampleUrl: preview/2023-02-01-preview/examples/DownloadMedia.json#L8:16 |
️️✔️
SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️
PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️
SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️
CadlValidation succeeded [Detail] [Expand]
Validation passes for CadlValidation.
️❌
PR Summary: 0 Errors, 0 Warnings failed [Detail]
Swagger Generation Artifacts
|
Generated ApiView
|
JeffreyRichter
approved these changes
Feb 3, 2023
glorialimicrosoft
pushed a commit
that referenced
this pull request
Aug 24, 2023
glorialimicrosoft
added a commit
that referenced
this pull request
Oct 9, 2023
* add api spec for cross-platform messaging service * remove external from swagger * Update communicationservicesmessaging.json * Update communicationservicesmessaging.json * address comments from internal review * use only one recipient as example * Address Azure Review feedback Add To field in SendMessageResult and change examples used in SendMessageRequest * address azure sdk review comments * Update communicationservicesmessaging.json * Adding Media Stream Endpoint (#21763) **Additional Changes** - Adding successful response info - Adding Examples * Changing API version and renaming to Messages (#22450) * Add ACS-CPM's template APIs with examples * Merge template API into our public version * New iteration - Take comments into account - Big changes in the API due to spec and scope changes * Update CommunicationServicesMessages.json to latest * Changing API version to 2023-08-24-preview * add "x-ms-examples" * attempt to fix RESPONSE_BODY_NOT_IN_EXAMPLE error * fix lint * fix Swagger LintDiff * fix more Swagger LintDiff * fix Swagger ModelValidation: Long running operation should return Operation-Id * fix prettier * fix prettier * fix Swagger ModelValidation * remove operation-id header for now until we get answer from azure board * Delete readme.csharp.md --------- Co-authored-by: Andrew Peacock <ajpeacock0@outlook.com> Co-authored-by: Samuel <SAVIN>
jnlycklama
pushed a commit
that referenced
this pull request
Nov 8, 2023
* add api spec for cross-platform messaging service * remove external from swagger * Update communicationservicesmessaging.json * Update communicationservicesmessaging.json * address comments from internal review * use only one recipient as example * Address Azure Review feedback Add To field in SendMessageResult and change examples used in SendMessageRequest * address azure sdk review comments * Update communicationservicesmessaging.json * Adding Media Stream Endpoint (#21763) **Additional Changes** - Adding successful response info - Adding Examples * Changing API version and renaming to Messages (#22450) * Add ACS-CPM's template APIs with examples * Merge template API into our public version * New iteration - Take comments into account - Big changes in the API due to spec and scope changes * Update CommunicationServicesMessages.json to latest * Changing API version to 2023-08-24-preview * add "x-ms-examples" * attempt to fix RESPONSE_BODY_NOT_IN_EXAMPLE error * fix lint * fix Swagger LintDiff * fix more Swagger LintDiff * fix Swagger ModelValidation: Long running operation should return Operation-Id * fix prettier * fix prettier * fix Swagger ModelValidation * remove operation-id header for now until we get answer from azure board * Delete readme.csharp.md --------- Co-authored-by: Andrew Peacock <ajpeacock0@outlook.com> Co-authored-by: Samuel <SAVIN>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Choose a PR Template
We gained SDK feedback that:
messaging
tomessages
. We have already done this rename on our SDK; this change updates our swagger to be consistantSwitch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.