Conversation
|
Hi, @osaghaso 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 |
|---|---|---|
| common.json | 2022-07-13(8ad4590) | 2022-07-13(main) |
| AzureCommunicationServices.json | 2018-01-01(8ad4590) | 2018-01-01(main) |
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 1 Errors, 0 Warnings failed [Detail]
| compared tags (via openapi-validator v2.0.0) | new version | base version |
|---|---|---|
| package-2022-07-13-stable | package-2022-07-13-stable(8ad4590) | package-2022-07-13-stable(main) |
| package-2018-01 | package-2018-01(8ad4590) | package-2018-01(main) |
[must fix]The following errors/warnings are introduced by current PR:
| Rule | Message | Related RPC [For API reviewers] |
|---|---|---|
MissingTypeObject |
The schema 'CallingCommunicationIdentifierModel' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Common/stable/2022-07-13/common.json#L87 |
The following errors/warnings exist before current PR submission:
Only 30 items are listed, please refer to log for more details.
| Rule | Message |
|---|---|
MissingTypeObject |
The schema 'AcsUserDisconnectedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L36 |
MissingTypeObject |
The schema 'AcsChatMessageReceivedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L45 |
MissingTypeObject |
The schema 'AcsChatMessageReceivedInThreadEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L66 |
MissingTypeObject |
The schema 'AcsChatMessageEditedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L87 |
MissingTypeObject |
The schema 'AcsChatMessageEditedInThreadEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L113 |
MissingTypeObject |
The schema 'AcsChatMessageDeletedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L139 |
MissingTypeObject |
The schema 'AcsChatMessageDeletedInThreadEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L154 |
MissingTypeObject |
The schema 'AcsChatThreadCreatedWithUserEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L169 |
MissingTypeObject |
The schema 'AcsChatThreadCreatedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L197 |
MissingTypeObject |
The schema 'AcsChatThreadWithUserDeletedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L225 |
MissingTypeObject |
The schema 'AcsChatThreadDeletedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L244 |
MissingTypeObject |
The schema 'AcsChatThreadPropertiesUpdatedPerUserEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L263 |
MissingTypeObject |
The schema 'AcsChatThreadPropertiesUpdatedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L289 |
MissingTypeObject |
The schema 'AcsChatParticipantAddedToThreadWithUserEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L315 |
MissingTypeObject |
The schema 'AcsChatParticipantRemovedFromThreadWithUserEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L338 |
MissingTypeObject |
The schema 'AcsChatParticipantAddedToThreadEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L361 |
MissingTypeObject |
The schema 'AcsChatParticipantRemovedFromThreadEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L389 |
MissingTypeObject |
The schema 'AcsSmsDeliveryReportReceivedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L417 |
MissingTypeObject |
The schema 'AcsSmsReceivedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L451 |
MissingTypeObject |
The schema 'AcsRecordingFileStatusUpdatedEventData' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L470 |
MissingTypeObject |
The schema 'AcsChatThreadEventBaseProperties' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L531 |
MissingTypeObject |
The schema 'AcsChatThreadEventInThreadBaseProperties' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L551 |
MissingTypeObject |
The schema 'AcsChatMessageEventBaseProperties' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L571 |
MissingTypeObject |
The schema 'AcsChatMessageEventInThreadBaseProperties' is considered an object but without a 'type:object', please add the missing 'type:object'. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L607 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L716 |
IntegerTypeMustHaveFormat |
The integer type does not have a format, please add it. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L720 |
| Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum. Location: Common/stable/2022-07-13/common.json#L174 |
|
| Consider using x-ms-client-flatten to provide a better end user experience Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L181 |
|
| additionalProperties with type object is a common error. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L184 |
|
| Property should have a description. Location: Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json#L184 |
️❌Avocado: 2 Errors, 0 Warnings failed [Detail]
| Rule | Message |
|---|---|
UNREFERENCED_JSON_FILE |
The example JSON file is not referenced from the swagger file. readme: specification/eventgrid/data-plane/readme.md json: 2018-01-01/examples/cloud-events-schema/incoming_call.json |
UNREFERENCED_JSON_FILE |
The example JSON file is not referenced from the swagger file. readme: specification/eventgrid/data-plane/readme.md json: 2018-01-01/examples/event-grid-schema/incoming_call.json |
️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
️⚠️~[Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]
API Test is not triggered due to precheck failure. Check pipeline log for details.
️️✔️~[Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️~[Staging] 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 Generation Artifacts
|
|
Swagger pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
|
Hi @osaghaso, Your PR has some issues. Please fix the CI sequentially by following the order of
|
…omingcall_swagger
This reverts commit 82b4ab3.
| "tsc": "tsc", | ||
| "multiapi": "ts-node ./scripts/multiapi.ts" | ||
| }, | ||
| "dependencies": { |
There was a problem hiding this comment.
This should not be changed.
| "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", | ||
| "dev": true | ||
| }, | ||
| "autorest": { |
There was a problem hiding this comment.
I think we need to revert this.
| "modelAsString": true | ||
| } | ||
| }, | ||
| "CallingCommunicationIdentifierModel": { |
There was a problem hiding this comment.
Do we need the Model suffix?
There was a problem hiding this comment.
I'll note this does seem to match the existing convention used in CommunicationIdentifierModel, CommunicationUserIdentifierModel, etc.
There was a problem hiding this comment.
This is missing the "type" property.
| } | ||
| } | ||
| }, | ||
| "UnknownIdentifierModel": { |
There was a problem hiding this comment.
Same question about whether we need Model suffix
|
Can you please combine the changes from this PR with #22272 and put them all in one PR? It will make it easier for us to generate API views and the changes are impacting the same swagger. |
|
We Closing this on pr for now as the service side is still miss a change that, we want to get done before merging. |
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.
❔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