This is an automated email from the ASF dual-hosted git repository.

houqp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new c6e043f  generate go client with latest openapi generator template 
(#16411)
c6e043f is described below

commit c6e043fd0e6fc32cbb3d11af0cbbb24b6fceed29
Author: QP Hou <[email protected]>
AuthorDate: Mon Jun 14 13:19:06 2021 -0700

    generate go client with latest openapi generator template (#16411)
    
    * generate go client with latest openapi generator template
    
    * bump client version
---
 clients/README.md | 8 ++++++++
 clients/gen/go.sh | 4 +++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/clients/README.md b/clients/README.md
index c192354..6a665f6 100644
--- a/clients/README.md
+++ b/clients/README.md
@@ -28,3 +28,11 @@ Supported languages:
 
 All client generation scripts use [pre-commit](https://pre-commit.com/#install)
 to prepend license header to generated code.
+
+## Usage
+
+To generate Go client, run:
+
+```
+bash ./gen/go.sh ../airflow/api_connexion/openapi/v1.yaml 
AIRFLOW_CLIENT_GO_REPO_PATH/airflow
+```
diff --git a/clients/gen/go.sh b/clients/gen/go.sh
index c66339f..a7a820e 100755
--- a/clients/gen/go.sh
+++ b/clients/gen/go.sh
@@ -25,7 +25,7 @@ readonly CLEANUP_DIRS
 # shellcheck source=./clients/gen/common.sh
 source "${CLIENTS_GEN_DIR}/common.sh"
 
-VERSION=1.1.0
+VERSION=2.1.0
 readonly VERSION
 
 go_config=(
@@ -35,6 +35,8 @@ go_config=(
 
 validate_input "$@"
 
+# additional-properties key value tuples need to be separated by comma, not 
space
+IFS=,
 gen_client go \
     --package-name airflow \
     --git-repo-id airflow-client-go/airflow \

Reply via email to