diff --git a/docs/spec/openapi.yaml b/docs/spec/openapi.yaml index 8775548..7380865 100644 --- a/docs/spec/openapi.yaml +++ b/docs/spec/openapi.yaml @@ -1694,7 +1694,7 @@ paths: "200": description: OK content: - application/json: + application/octet-stream: schema: type: string x-oaiMeta: @@ -14273,4 +14273,4 @@ x-oaiMeta: path: create - type: object key: CreateCompletionResponse - path: object + path: object \ No newline at end of file diff --git a/docs/spec/sanitations.md b/docs/spec/sanitations.md index e2439cc..dcac153 100644 --- a/docs/spec/sanitations.md +++ b/docs/spec/sanitations.md @@ -37,6 +37,13 @@ This document records the sanitation done on top of the official OpenAPI specifi - **Reasons**: The response does not include the code, message, and param, causing an error of missing required fields when converting. +4. **Changed the response content type in `/files/{file_id}/content` endpoint** + - **Original**: The response content type of the `/files/{file_id}/content` endpoint was originally `application/json`. + + - **Updated**: The content type has been changed to `application/octet-stream`. + + - **Reasons**: The server's actual response content type was `application/octet-stream`. + ## OpenAPI cli command The following command was used to generate the Ballerina client from the OpenAPI specification. The command should be executed from the repository root directory. @@ -44,4 +51,4 @@ The following command was used to generate the Ballerina client from the OpenAPI ```bash bal openapi -i docs/spec/openapi.yaml --mode client --license docs/license.txt -o ballerina --tags 'Fine-tuning','Files','Models' ``` -Note: The license year is hardcoded to 2024, change if necessary. +Note: The license year is hardcoded to 2024, change if necessary. \ No newline at end of file