Skip to content

Commit

Permalink
Update sanitations.md with openAPI client generation command information
Browse files Browse the repository at this point in the history
  • Loading branch information
NipunaRanasinghe committed Mar 21, 2024
1 parent fd19810 commit 5e5e156
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/spec/sanitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,13 @@ These changes are done in order to improve the overall usability, and as workaro
4. Add `Accept` header (as `application/json`) to all the operations.
* The ZenDesk OpenAPI reference does not include the `Accept` header in the operations, but the server returns an
unsupported media type error if the `Accept` header is not included in the requests.

## 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/ --nullable
```
Note: The license year is hardcoded to 2024, change if necessary.

0 comments on commit 5e5e156

Please sign in to comment.