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

Minor Fixes of TypeSpec for AOAI On Your Data 2023-12-01-preview /extensions/chat/completions #27271

Merged
merged 9 commits into from
Jan 10, 2024

generated

52d5824
Select commit
Loading
Failed to load commit list.
Merged

Minor Fixes of TypeSpec for AOAI On Your Data 2023-12-01-preview /extensions/chat/completions #27271

generated
52d5824
Select commit
Loading
Failed to load commit list.
openapi-pipeline-app / Swagger ModelValidation failed Jan 9, 2024 in 2m 31s

Swagger ModelValidation failed

ModelValidation: 27 Errors, 0 Warnings
View Azure DevOps build log for more details.

Details

Rule Message
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-09-01-preview/generated.json#L697:34
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranscriptionAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-09-01-preview/generated.json#L86:22
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_text.json#L10:16
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-09-01-preview/generated.json#L885:32
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranslationAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-09-01-preview/generated.json#L137:22
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_text.json#L10:16
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranscriptionAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-09-01-preview/generated.json#L466:15
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_object.json
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranslationAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-09-01-preview/generated.json#L533:15
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_object.json
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-12-01-preview/generated.json#L671:34
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranscriptionAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-12-01-preview/generated.json#L86:22
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_text.json#L10:16
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-12-01-preview/generated.json#L859:32
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranslationAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-12-01-preview/generated.json#L137:22
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_text.json#L10:16
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: revised_prompt
Url: inference/preview/2023-12-01-preview/generated.json#L3048:25
ExampleUrl: preview/2023-12-01-preview/examples/image_generation.json#L27:27
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranscriptionAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-12-01-preview/generated.json#L440:15
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_object.json
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranslationAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-12-01-preview/generated.json#L507:15
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_object.json
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-09-01-preview/generated.json#L697:34
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranscriptionAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-09-01-preview/generated.json#L86:22
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_text.json#L10:16
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-09-01-preview/generated.json#L885:32
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranslationAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-09-01-preview/generated.json#L137:22
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_text.json#L10:16
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranscriptionAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-09-01-preview/generated.json#L466:15
ExampleUrl: preview/2023-09-01-preview/examples/audio_transcription_object.json
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranslationAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-09-01-preview/generated.json#L533:15
ExampleUrl: preview/2023-09-01-preview/examples/audio_translation_object.json
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-12-01-preview/generated.json#L671:34
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranscriptionAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-12-01-preview/generated.json#L86:22
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_text.json#L10:16
INVALID_TYPE Expected type object but found type string
Url: inference/preview/2023-12-01-preview/generated.json#L859:32
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_text.json#L8:13
RESPONSE_BODY_NOT_IN_EXAMPLE Response statusCode 200 for operation GetAudioTranslationAsPlainText has no response body provided in the example, however the response does have a "schema" defined in the swagger spec.
Url: inference/preview/2023-12-01-preview/generated.json#L137:22
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_text.json#L10:16
OBJECT_ADDITIONAL_PROPERTIES Additional properties not allowed: revised_prompt
Url: inference/preview/2023-12-01-preview/generated.json#L3048:25
ExampleUrl: preview/2023-12-01-preview/examples/image_generation.json#L27:27
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranscriptionAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-12-01-preview/generated.json#L440:15
ExampleUrl: preview/2023-12-01-preview/examples/audio_transcription_object.json
REQUIRED_PARAMETER_EXAMPLE_NOT_FOUND In operation GetAudioTranslationAsResponseObject, parameter file is required in the swagger spec but is not present in the provided example parameter values.
Url: inference/preview/2023-12-01-preview/generated.json#L507:15
ExampleUrl: preview/2023-12-01-preview/examples/audio_translation_object.json
unacceptable kind of an object to dump [object Error] "role":"Model Validation",
"url":"https://github.com/Azure/azure-rest-api-specs/blob/52d5824670a0ba738ea3373b95ab3ec93e20fbcd/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json"