[ACS - Chat] Data Retention Policy 2023-07-01-preview#22858
Conversation
|
Hi, @LuChen-Microsoft 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 swaggers (via Oad v0.10.4)] | new version | base version |
|---|---|---|
| communicationserviceschat.json | 2023-07-01-preview(c8b37cd) | 2021-09-07(main) |
| communicationserviceschat.json | 2023-07-01-preview(c8b37cd) | 2023-04-01-preview(main) |
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 2 Warnings warning [Detail]
| compared tags (via openapi-validator v2.0.0) | new version | base version |
|---|---|---|
| package-chat-2023-07-01-preview | package-chat-2023-07-01-preview(c8b37cd) | default(main) |
[must fix]The following errors/warnings are introduced by current PR:
| Rule | Message | Related RPC [For API reviewers] |
|---|---|---|
| A post operation should not consume 'application/merge-patch+json' content type. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L1132 |
||
| The body parameter is not marked as required. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L1150 |
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/2023-07-01-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/2023-07-01-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/2023-07-01-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/2023-07-01-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/2023-07-01-preview/communicationserviceschat.json#L1069 |
HostParametersValidation |
The host parameter must be typed 'type 'string', format 'url''. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L1844 |
| Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L20 |
|
| Operation is missing a default response. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L45 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L52 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L59 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L66 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L73 |
|
| Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L104 |
|
| Operation is missing a default response. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L124 |
|
| All success responses except 202 & 204 should define a response body. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L125 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L128 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L135 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L142 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L149 |
|
| Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L178 |
|
| Operation is missing a default response. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L198 |
|
| Using post for a create operation is discouraged. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L199 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L205 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L212 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L219 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L226 |
|
| Path parameter should specify a maximum length (maxLength) and characters allowed (pattern). Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L250 |
|
| Operation is missing a default response. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L275 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L282 |
|
| Error response should contain a x-ms-error-code header. Location: Chat/preview/2023-07-01-preview/communicationserviceschat.json#L289 |
️️✔️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]
️️✔️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.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
|
Swagger pipeline restarted successfully, please wait for status update in this comment. |
Generated ApiView
|
|
/azp run unifiedPipeline |
|
No pipelines are associated with this pull request. |
|
/azp run unifiedPipeline |
|
No pipelines are associated with this pull request. |
|
/azp run unifiedPipeline |
|
No pipelines are associated with this pull request. |
|
You have to tell me exaclty what you want reviewed here. You don't need the whole thing reviewed, right? |
|
Hi, @LuChen-Microsoft. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove |
Hi @JeffreyRichter , thanks for the comment. I added the description. Here's the Open API differences between the change with our current stable version: Open API HUB Comparing Version Updated Paths: |
|
It looks fine to me but I still see non-2xx codes in the swagger and they shouldn't be there. |
JeffreyRichter
left a comment
There was a problem hiding this comment.
Please remove all non-2xx codes from swagger
|
Hi @LuChen-Microsoft, Your PR has some issues. Please fix the CI sequentially by following the order of
|
- Rename the `BaseOnThreadCreationDateRetentionPolicy` to `ThreadCreationDateRetentionPolicy`
Thanks! Created a separate item to remove them. |
* Adds base for updating Chat from version stable/2021-09-07 to version 2023-07-01-preview * Updates readme * Updates API version in new specs and examples * add retention policy * add examples change * update readme * fix stable version * fix validations * merge the changes with image sharing * remove unused example * - Remove the retention policy from updat chat thread - Rename the `BaseOnThreadCreationDateRetentionPolicy` to `ThreadCreationDateRetentionPolicy`
ACS Chat is adding a
RetentionPolicyproperty into Thread model. It is used to specify the retention policy for the thread. The retention policy specifies how long the thread should be retained. You can create a thread with a retention policy by setting the RetentionPolicy property of the Thread model to the desired retention policy. You can get the retention policy of a thread by reading the RetentionPolicy property of the Thread model.Due to the support from dependencies, RetentionPolicy property of the Thread model is not able to be updated during the preview stage.
This is a PR generated at OpenAPI Hub. You can view your work branch via this link.
Data Plane API - Pull Request
API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.
Is this review for (select one):
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 Open API document (swagger) if applicable, and the root paths that have been updated.
Differences: Open API HUB Comparing Version
Paths:
Post: "/chat/threads"
Get: "/chat/threads" "/chat/threads/{chatThreadId}"
PATCH: "/chat/threads/{chatThreadId}"
Here are the detailed changes:
1. Expose the Retention Policy Model
For the potential support in future, we might add the new policy type into RetentionPolicy. (This is not included in current version change)
2. Add an optional property RententionPolicy in Create Chat Thread:
3. Add an optional property RententionPolicy when Get Chat Thread
❔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
fix #22880