Skip to content
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

GA3 Changes #29119

Open
wants to merge 1 commit into
base: callautomation/alpha3
Choose a base branch
from

Conversation

amariwest-msft
Copy link
Contributor

@amariwest-msft amariwest-msft commented May 16, 2024

Data Plane API Specification Update Pull Request

Tip

Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

spec_pr_review_workflow_diagram

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.

  • Design Document:
  • Previous API Spec Doc:
  • Updated paths:

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

Getting help

  • First, please carefully read through this PR description, from top to bottom.
  • To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
  • For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
    and https://aka.ms/ci-fix.
  • 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.
  • If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

@amariwest-msft amariwest-msft requested a review from a team as a code owner May 16, 2024 00:08
@amariwest-msft amariwest-msft requested review from JeffreyRichter and weidongxu-microsoft and removed request for a team May 16, 2024 00:08
Copy link

openapi-pipeline-app bot commented May 16, 2024

Next Steps to Merge

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

Copy link

openapi-pipeline-app bot commented May 16, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 2 Errors, 0 Warnings failed [Detail] The following breaking changes are detected by comparison with the latest stable version:
Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/156ff363e44f764ddd8a0a6adcd371610240ba15/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/data-plane/CallAutomation/stable/2023-03-06/communicationservicescallautomation.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 20 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Remaining lines should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.99/common/temp/node_modules/.pnpm/@Azure+oad@0.10.8/node_modules/autorest/dist/app.js" --v2 --input-file=specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp/oad-rF3PiP
2: ERROR: Referenced file 'file:///mnt/vss/work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMediaStopMediaStreaming.json' not found
3: - file:///mnt/vss/work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json:1136:12 ($.paths["/calling/callConnections/callConnectionId:stopMediaStreaming"].post["x-ms-examples"].CallMediaStopMediaStreaming["$ref"])
4: FATAL: swagger-document/loader - FAILED
5: FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
6: Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting."


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

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/156ff363e44f764ddd8a0a6adcd371610240ba15/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/communication/data-plane/CallAutomation/preview/2023-06-15-preview/communicationservicescallautomation.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 20 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Remaining lines should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.99/common/temp/node_modules/.pnpm/@Azure+oad@0.10.8/node_modules/autorest/dist/app.js" --v2 --input-file=specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp/oad-8L8LGR
2: ERROR: Referenced file 'file:///mnt/vss/work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMediaStopMediaStreaming.json' not found
3: - file:///mnt/vss/work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json:1136:12 ($.paths["/calling/callConnections/callConnectionId:stopMediaStreaming"].post["x-ms-examples"].CallMediaStopMediaStreaming["$ref"])
4: FATAL: swagger-document/loader - FAILED
5: FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
6: Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting."
️❌LintDiff: 4 Errors, 11 Warnings failed [Detail]
Compared specs (v2.2.2) new version base version
package-2023-10-03-preview package-2023-10-03-preview(156ff36) package-2023-10-03-preview(callautomation/alpha3)

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

Rule Message Related RPC [For API reviewers]
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1049
RPC-Post-V1-09
invalid-ref Could not read file: file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMedia_StartMediaStreaming.json .
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1088
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1095
RPC-Post-V1-09
invalid-ref Could not read file: file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMedia_StopMediaStreaming.json .
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1135
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1057
⚠️ ParameterDescription Parameter should have a description.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1064
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1077
⚠️ LroHeaders A 202 response should include an Operation-Location response header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1083
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1103
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1124
⚠️ LroHeaders A 202 response should include an Operation-Location response header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1130
⚠️ 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: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L2050
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L2889
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L2902
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L3414


The following errors/warnings exist before current PR submission:

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

Rule Message
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L369
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L433
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L480
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L526
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L573
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L611
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L750
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L814
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1346
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1409
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1601
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1844
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L1881
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L19
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L25
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L40
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L55
⚠️ Post201Response Using post for a create operation is discouraged.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L61
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L82
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L97
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L112
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L133
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L139
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L154
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L169
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L187
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L193
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L208
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L223
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L248
️❌Avocado: 1 Errors, 0 Warnings failed [Detail]
Rule Message
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: communication/data-plane/CallAutomation/readme.md
json: preview/2023-10-03-preview/examples/CallMedia_StopMediaStreaming.json
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 1 Errors, 0 Warnings failed [Detail]
Rule Message
unacceptable kind of an object to dump [object Error] "role":"Model Validation",
"url":"https://github.com/Azure/azure-rest-api-specs/blob/156ff363e44f764ddd8a0a6adcd371610240ba15/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json"
️❌SemanticValidation: 1 Errors, 0 Warnings failed [Detail]
Rule Message
INTERNAL_ERROR Unexpected internal error: ENOENT: no such file or directory, open '/mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMedia_StartMediaStreaming.json' Error: ENOENT: no such file or directory, open '/mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/CallAutomation/preview/2023-10-03-preview/examples/CallMedia_StartMediaStreaming.json'
JsonUrl: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json
️❌SpellCheck: 1 Errors, 0 Warnings failed [Detail]
Rule Message
HowToFix Unknown word (transferor's), please fix the error. See https://aka.ms/ci-fix#spell-check
path: CallAutomation/preview/2023-10-03-preview/communicationservicescallautomation.json#L2360:90
️️✔️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?

Copy link

openapi-pipeline-app bot commented May 16, 2024

Swagger Generation Artifacts

️🔄ApiDocPreview inProgress [Detail]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented May 16, 2024

Generated ApiView

Language Package Name ApiView Link
Swagger CallAutomation https://apiview.dev/Assemblies/Review/224ad4b2fcd84615af973cc42c3c423a?revisionId=712b3bad5c6f4a398730529adb018e0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants