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

Add 2024-05-15-preview of SpeechToText API (CognitiveServices) #29804

Merged
merged 7 commits into from
Jul 12, 2024

Keep latest GA latest

c3c82e5
Select commit
Loading
Failed to load commit list.
Merged

Add 2024-05-15-preview of SpeechToText API (CognitiveServices) #29804

Keep latest GA latest
c3c82e5
Select commit
Loading
Failed to load commit list.
openapi-pipeline-app / Swagger LintDiff succeeded Jul 12, 2024 in 4m 17s

Swagger LintDiff succeeded

Details

Compared specs (v2.2.2) new version base version
release_2024_05_15_preview release_2024_05_15_preview(c3c82e5) default(main)

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

Rule Message Related RPC [For API reviewers]
⚠️ PutRequestResponseScheme A PUT operation request body schema should be the same as its 200 response schema, to allow reusing the same entity between GET and PUT. If the schema of the PUT request body is a superset of the GET response body, make sure you have a PATCH operation to make the resource updatable. Operation: 'Datasets_UploadBlock' Request Model: 'parameters[3].schema' Response Model: 'responses[201].schema'
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L369
⚠️ ParameterDescription Parameter should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L400
⚠️ PageableOperation Based on the response model schema, operation 'Transcriptions_ListSupportedLocales' might be pageable. Consider adding the x-ms-pageable extension.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3182
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3182
⚠️ Post201Response Using post for a create operation is discouraged.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3459
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3472
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3474
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3997
⚠️ OperationId OperationId should be of the form 'Noun_Verb'
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4002
⚠️ Formdata Check for appropriate use of formData parameters.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4013
⚠️ Formdata Check for appropriate use of formData parameters.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4020
⚠️ DefaultResponse Operation is missing a default response.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4029
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4443
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4449
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4455
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4461
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4467
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L4473
⚠️ 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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L6404
⚠️ 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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L6409
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L6611
⚠️ PropertyDescription Property should have a description.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L6617
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L6945


The following errors/warnings exist before current PR submission:
Only 50 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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L984
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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L1189
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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3896
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: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L3945
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L35
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L37
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L79
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L90
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L92
⚠️ Post201Response Using post for a create operation is discouraged.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L137
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L150
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L152
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L178
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L204
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L206
⚠️ PatchContentType A patch operation should only consume 'application/merge-patch+json' content type.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L223
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L231
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L266
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L268
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L289
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L305
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L307
⚠️ PutPath The path for a put should have a final path parameter.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L319
⚠️ PageableOperation Based on the response model schema, operation 'Datasets_GetBlocks' might be pageable. Consider adding the x-ms-pageable extension.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L320
⚠️ PaginationResponse Operation might be pageable. Consider adding the x-ms-pageable extension.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L320
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L330
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L356
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L358
⚠️ OperationId OperationId for put method should contain 'Create'
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L374
⚠️ PutInOperationName 'PUT' operation 'Datasets_UploadBlock' should use method name 'Create'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L374
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L382
⚠️ SuccessResponseBody All success responses except 202 & 204 should define a response body.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L411
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L414
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L416
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L442
⚠️ SuccessResponseBody All success responses except 202 & 204 should define a response body.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L467
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L470
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L472
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L495
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L525
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L536
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L538
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L568
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L576
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L598
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L600
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L637
⚠️ ErrorResponse Error response schema should contain an object property named error.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L639
⚠️ PaginationResponse Response body schema of pageable response should contain top-level array property value
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L681
⚠️ ErrorResponse Error response should contain a x-ms-error-code header.
Location: SpeechToText/preview/2024-05-15-preview/speechtotext.json#L692