From 1fe9f385f5bcced4addeaeb8adfec16ff9a06e9d Mon Sep 17 00:00:00 2001 From: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:10:55 +0530 Subject: [PATCH] Update according to the review suggestions --- .../src/main/resources/cli-help/ballerina-openapi.help | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/ballerina-cli/src/main/resources/cli-help/ballerina-openapi.help b/cli/ballerina-cli/src/main/resources/cli-help/ballerina-openapi.help index b197c0e21add..736df2e1061f 100755 --- a/cli/ballerina-cli/src/main/resources/cli-help/ballerina-openapi.help +++ b/cli/ballerina-cli/src/main/resources/cli-help/ballerina-openapi.help @@ -13,7 +13,7 @@ SYNOPSIS [--operations ] [-n | --nullable] [--license] [--with-tests] [--client-methods] [--without-data-binding] - [--with-status-code-binding] + [--status-code-binding] bal openapi [-i | --input] [--json] [-s | --service] @@ -83,13 +83,13 @@ OPTIONS --client-methods This option can be used in client generation to select the client method type, which can be `resource` or `remote`. - The default option is `remote`. + The default option is `resource`. --without-data-binding This option can be used in the service generation to generate a low-level service without any data-binding logic. - --with-status-code-binding + --status-code-binding This option can be used in the client generation to generate the client methods with status code response binding. @@ -124,8 +124,8 @@ EXAMPLES Generate a Ballerina client with status code response binding using a `hello.yaml` OpenAPI contract. - $ bal openapi -i hello.yaml --mode client --with-status-code-binding - $ bal openapi -i hello.yaml --with-status-code-binding + $ bal openapi -i hello.yaml --mode client --status-code-binding + $ bal openapi -i hello.yaml --status-code-binding Generate all the record fields that are not specifically mentioned as `nullable:false` in the OpenAPI schema property as nullable.