Skip to content

[ACS][Communication][Chat] 2024-03-15-preview public preview API spec#27225

Merged
ms-zhenhua merged 25 commits intomainfrom
jimchou/ms-communication-chat-2024-03-15-preview
Mar 21, 2024
Merged

[ACS][Communication][Chat] 2024-03-15-preview public preview API spec#27225
ms-zhenhua merged 25 commits intomainfrom
jimchou/ms-communication-chat-2024-03-15-preview

Conversation

@jimchou-dev
Copy link
Member

@jimchou-dev jimchou-dev commented Jan 2, 2024

Data Plane API - Pull Request

This PR includes previously approved features:

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.

  • Link to API Spec 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 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

Checks stuck in `queued` state? If the PR CI checks appear to be stuck in `queued` state, please add a comment with contents `/azp run`. This should result in a new comment denoting a `PR validation pipeline` has started and the checks should be updated after few minutes.

fix #25607

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jan 2, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see https://aka.ms/azsdk/specreview/merge.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jan 2, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️Breaking Change(Cross-Version): 1 Warnings warning [Detail]
Compared specs (v0.10.5) new version base version
communicationserviceschat.json 2024-03-15-preview(2909af3) 2024-03-07(main)
communicationserviceschat.json 2024-03-15-preview(2909af3) 2023-11-15-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Rule Message
⚠️ 1003 - RequestBodyFormatNoLongerSupported The new version does not support 'application/merge-patch+json' as a request body format.
New: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1132:9
Old: Chat/preview/2023-11-15-preview/communicationserviceschat.json#L1132:9
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 13 Warnings warning [Detail]
Compared specs (v2.2.0) new version base version
package-2024-03-15-preview package-2024-03-15-preview(2909af3) default(main)

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

Rule Message Related RPC [For API reviewers]
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1219
⚠️ Post201Response Using post for a create operation is discouraged.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1240
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1246
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1248
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1276
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1283
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1290
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1316
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1318
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1341
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1348
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1363
⚠️ ErrorResponse The error property in the error response schema should be required.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1365


The following errors/warnings exist before current PR submission:

Only 30 items are listed, please refer to log for more details.

Rule Message
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Chat' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L781
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Chat' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L858
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'ChatThread' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L934
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'ChatThread' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1006
OperationIdNounVerb Per the Noun_Verb convention for Operation Ids, the noun 'Chat' should not appear after the underscore. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L1069
HostParametersValidation The host parameter must be typed 'type 'string', format 'url''.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L2147
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L20
⚠️ DefaultResponse Operation is missing a default response.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L45
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L52
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L59
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L66
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L73
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L104
⚠️ DefaultResponse Operation is missing a default response.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L124
⚠️ SuccessResponseBody All success responses except 202 & 204 should define a response body.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L125
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L128
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L135
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L142
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L149
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L178
⚠️ DefaultResponse Operation is missing a default response.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L198
⚠️ Post201Response Using post for a create operation is discouraged.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L199
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L205
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L212
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L219
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L226
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L250
⚠️ DefaultResponse Operation is missing a default response.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L275
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L282
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: Chat/preview/2024-03-15-preview/communicationserviceschat.json#L289
️️✔️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.
️️✔️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 Jan 2, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jan 2, 2024

Generated ApiView

Language Package Name ApiView Link
Swagger Chat https://apiview.dev/Assemblies/Review/7de49151a2ee45d29d87eee0aa5da23b?revisionId=d4bf6b416576475588dbae332b131f62

@openapi-workflow-bot
Copy link

Hi @jimchou-dev! For review efficiency consideration, when creating a new API version, it is required to place API specs of the base version in the first commit, and push new version updates into successive commits. You can use OpenAPIHub to initialize the PR for adding a new version.
For more details refer to the wiki.

@jimchou-dev jimchou-dev changed the title [ACS][Communication][Chat] Added New API for Image Upload [ACS][Communication][Chat] 2024-03-15-preview public preview API spec Jan 24, 2024
Copy link
Member

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

I found a few minor problems.

The only egregious one is the "application/merge-patch+json" content type on Post for /chat/threads/{chatThreadId}/typing -- please remove that.

The others should also be fixed but no required for preview.

I'll approve as the changes are minor.

Copy link
Member

@heaths heaths left a comment

Choose a reason for hiding this comment

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

A few comments added in APIView, and discussed in our review meeting. Close to being good enough for a preview, though.

@openapi-pipeline-app
Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

@jimchou-dev jimchou-dev requested a review from heaths February 1, 2024 22:57
@heaths
Copy link
Member

heaths commented Feb 2, 2024

You need to fix the ModelValidation errors as well.

@heaths heaths closed this Feb 2, 2024
@heaths heaths reopened this Feb 2, 2024
@heaths
Copy link
Member

heaths commented Feb 2, 2024

Sorry that got closed. Seems I hit some key sequence accidentally that closes GitHub issues. 😬

@heaths heaths added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Feb 7, 2024
@jimchou-dev jimchou-dev marked this pull request as ready for review March 19, 2024 17:06
@jimchou-dev jimchou-dev requested a review from a team as a code owner March 19, 2024 17:06
@jimchou-dev jimchou-dev requested review from MushMal and vicancy and removed request for a team March 19, 2024 17:06
@openapi-pipeline-app
Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

@jimchou-dev
Copy link
Member Author

/pr Requestmerge

@jimchou-dev
Copy link
Member Author

/pr RequestMerge

@ms-zhenhua ms-zhenhua merged commit 53bd99a into main Mar 21, 2024
@ms-zhenhua ms-zhenhua deleted the jimchou/ms-communication-chat-2024-03-15-preview branch March 21, 2024 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. CI-MissingBaseCommit data-plane new-api-version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Azure Communications Gateway - Azure Communications Gateway] API Review

6 participants