Skip to content

Commit

Permalink
generate go client with latest openapi generator template (apache#16411)
Browse files Browse the repository at this point in the history
* generate go client with latest openapi generator template

* bump client version
  • Loading branch information
QP Hou authored Jun 14, 2021
1 parent 6087a09 commit c6e043f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions clients/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
4 changes: 3 additions & 1 deletion clients/gen/go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand All @@ -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 \
Expand Down

0 comments on commit c6e043f

Please sign in to comment.