Skip to content

Commit

Permalink
Merge pull request #43250 from ballerina-platform/openapi-update
Browse files Browse the repository at this point in the history
[Master] Update Ballerina OpenAPI command help text
  • Loading branch information
lnash94 authored Aug 13, 2024
2 parents b75b5ca + 6089dc2 commit 8bc5f6c
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ SYNOPSIS
[--operations <operation-names>] [-n | --nullable]
[--license] <license-file-path> [--with-tests]
[--client-methods] <resource|remote> [--without-data-binding]
[--status-code-binding]
[--status-code-binding] [--mock] [--with-service-contract]
[--single-file] [--use-sanitized-oas]
bal openapi [-i | --input] <ballerina-service-file-path> [--json]
[-s | --service] <current-service-name>

Expand Down Expand Up @@ -93,6 +94,22 @@ OPTIONS
This option can be used in the client generation to generate the
client methods with status code response binding.

--mock
This option can be used in the client generation to generate a mock
client for the given OpenAPI contract.

--with-service-contract
This option can be used to generate the service contract type for the
given OpenAPI contract.

--single-file
This option can be used to generate the Ballerina service or client
with related types and utility functions in a single file.

--use-sanitized-oas
This is an experimental feature. This option enables service/client code
generation by modifying the given OAS to follow the Ballerina language
best practices.
EXAMPLES
Generate a Ballerina mock service using a `hello.yaml` OpenAPI contract.
$ bal openapi -i hello.yaml --mode service
Expand Down

0 comments on commit 8bc5f6c

Please sign in to comment.