Skip to content

Commit

Permalink
Merge branch 'ballerina-platform:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
KATTA-00 authored Aug 8, 2024
2 parents 375abfb + 686f2b3 commit 617401a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/spec/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1694,7 +1694,7 @@ paths:
"200":
description: OK
content:
application/json:
application/octet-stream:
schema:
type: string
x-oaiMeta:
Expand Down Expand Up @@ -14273,4 +14273,4 @@ x-oaiMeta:
path: create
- type: object
key: CreateCompletionResponse
path: object
path: object
9 changes: 8 additions & 1 deletion docs/spec/sanitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ 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.

```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.

0 comments on commit 617401a

Please sign in to comment.