Skip to content

API spec changes for PSTN Dialout for Rooms#25451

Merged
anuchandy merged 13 commits intoAzure:mainfrom
shwali-msft:main
Sep 11, 2023
Merged

API spec changes for PSTN Dialout for Rooms#25451
anuchandy merged 13 commits intoAzure:mainfrom
shwali-msft:main

Conversation

@shwali-msft
Copy link
Contributor

@shwali-msft shwali-msft commented Aug 22, 2023

API spec changes for PSTN Dialout for Rooms

fix #25486

@shwali-msft shwali-msft requested a review from a team as a code owner August 22, 2023 19:13
@shwali-msft shwali-msft requested review from JeffreyRichter and markweitzel and removed request for a team August 22, 2023 19:13
@openapi-pipeline-app
Copy link

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

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 6 Errors, 6 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
communicationservicesrooms.json 2023-10-30-preview(cf38c10) 2023-06-14(main)
communicationservicesrooms.json 2023-10-30-preview(cf38c10) 2023-03-31-preview(main)

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

Rule Message
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L485:7
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L480:7
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L53:13
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L53:13
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L542:11
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L533:11
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L146:13
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L146:13
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L205:13
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L205:13
1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L475:5
Old: Rooms/stable/2023-06-14/communicationservicesrooms.json#L471:5


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

Rule Message
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L485:7
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L480:7
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L53:13
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L53:13
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L542:11
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L533:11
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L146:13
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L146:13
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L205:13
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L205:13
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'pstnDialOutEnabled' that was not found in the old version.
New: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L475:5
Old: Rooms/preview/2023-03-31-preview/communicationservicesrooms.json#L471:5
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 3 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.4) new version base version
package-rooms-2023-10-30-preview package-rooms-2023-10-30-preview(cf38c10) default(main)

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

Rule Message Related RPC [For API reviewers]
⚠️ EnumInsteadOfBoolean 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: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L409
⚠️ EnumInsteadOfBoolean 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: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L509
⚠️ EnumInsteadOfBoolean 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: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L594


The following errors/warnings exist before current PR submission:

Rule Message
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L28
⚠️ Post201Response Using post for a create operation is discouraged.
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L51
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L132
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L182
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L238
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L284
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L338
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L431
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule Message
INVALID_TYPE Expected type but found type object
Url: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L358:22
ExampleUrl: preview/2023-10-30-preview/examples/Participants_Update.json#L18:16
INVALID_TYPE Expected type but found type object
Url: Rooms/preview/2023-10-30-preview/communicationservicesrooms.json#L358:22
ExampleUrl: preview/2023-10-30-preview/examples/Participants_Update.json#L18:16
️️✔️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 Aug 22, 2023

Swagger pipeline restarted successfully, please wait for status update in this comment.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 22, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger communication-data-plane-Rooms https://apiview.dev/Assemblies/Review/330f4217ec9e442ebb71435d24207441

@AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required CI-FixRequiredOnFailure data-plane labels Aug 22, 2023
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 22, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 22, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 22, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

@JeffreyRichter
Copy link
Member

I see new required properties here: https://github.com/Azure/azure-rest-api-specs/pull/25451/checks?check_run_id=16123854044
Do these have to be required? It is a breaking change which will have to be justified.

@JeffreyRichter
Copy link
Member

Adding the new flag property is fine but the description is not great. How about: Set this flag to true if, at the time of the call, dial out to a PSTN number in enabled in a particular room.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

@shwali-msft
Copy link
Contributor Author

Adding the new flag property is fine but the description is not great. How about: Set this flag to true if, at the time of the call, dial out to a PSTN number in enabled in a particular room.

Updated description as suggested.

@shwali-msft shwali-msft reopened this Aug 23, 2023
@shwali-msft
Copy link
Contributor Author

I see new required properties here: https://github.com/Azure/azure-rest-api-specs/pull/25451/checks?check_run_id=16123854044 Do these have to be required? It is a breaking change which will have to be justified.

Yes, this needs to be added as a required property in RoomModel object. I have scheduled an API review with ARB for getting this reviewed.

"example": "2021-09-08T15:55:41Z"
},
"enablePstnDialout": {
"description": "Set this flag to true if, at the time of the call, dial out to a PSTN number in enabled in a particular room.",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"description": "Set this flag to true if, at the time of the call, dial out to a PSTN number in enabled in a particular room.",
"description": "Set this flag to true if, at the time of the call, dial out to a PSTN number is enabled in a particular room.",

@JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Sep 7, 2023
@JeffreyRichter JeffreyRichter added the APIStewardshipBoard-SignedOff The Azure API Stewardship team has reviewed and approved the changes. label Sep 11, 2023
@anuchandy
Copy link
Member

Approving the model validation, as the same were identified as false positive and confirmed with Azure Board in an earlier pr #22540

@openapi-pipeline-app
Copy link

Swagger pipeline restarted successfully, please wait for status update in this comment.

jnlycklama pushed a commit that referenced this pull request Nov 8, 2023
* Changes for PSTN dialout review

* Adding examples

* Modifying Examples jsons

* Adding version in Readme.md

* correcting version in comment

* adding Dialout to words

* nit

* Resolving review comments

* nits

* renaming enablePstnDialout to enablePstnDialOut

* Changing name from enablePstnDialOut to pstnDialOutEnabled as per review feedback
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. Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 Approved-ModelValidation BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required CI-FixRequiredOnFailure data-plane

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[IC3 ACS Rooms ] API Review

6 participants