houqp commented on a change in pull request #14739:
URL: https://github.com/apache/airflow/pull/14739#discussion_r593506408
##########
File path: clients/gen/go.sh
##########
@@ -35,48 +30,11 @@ go_config=(
"enumClassPrefix=true"
)
-SPEC_PATH=$(realpath "$1")
-readonly SPEC_PATH
-
-if [ ! -d "$2" ]; then
- echo "$2 is not a valid directory or does not exist."
- exit 1
-fi
-
-OUTPUT_DIR=$(realpath "$2")
-readonly OUTPUT_DIR
-
-# create openapi ignore file to keep generated code clean
-cat <<EOF > "${OUTPUT_DIR}/.openapi-generator-ignore"
-.travis.yml
-git_push.sh
-EOF
-
-set -ex
-IFS=','
+validate_input "$@"
gen_client go \
--package-name airflow \
--git-repo-id airflow-client-go/airflow \
--additional-properties "${go_config[*]}"
-# patch generated client to support problem HTTP API
-# this patch can be removed after following upstream patch gets merged:
-# https://github.com/OpenAPITools/openapi-generator/pull/6793
Review comment:
also did you see test cases failing for go client or python client?
##########
File path: clients/gen/go.sh
##########
@@ -35,48 +30,11 @@ go_config=(
"enumClassPrefix=true"
)
-SPEC_PATH=$(realpath "$1")
-readonly SPEC_PATH
-
-if [ ! -d "$2" ]; then
- echo "$2 is not a valid directory or does not exist."
- exit 1
-fi
-
-OUTPUT_DIR=$(realpath "$2")
-readonly OUTPUT_DIR
-
-# create openapi ignore file to keep generated code clean
-cat <<EOF > "${OUTPUT_DIR}/.openapi-generator-ignore"
-.travis.yml
-git_push.sh
-EOF
-
-set -ex
-IFS=','
+validate_input "$@"
gen_client go \
--package-name airflow \
--git-repo-id airflow-client-go/airflow \
--additional-properties "${go_config[*]}"
-# patch generated client to support problem HTTP API
-# this patch can be removed after following upstream patch gets merged:
-# https://github.com/OpenAPITools/openapi-generator/pull/6793
Review comment:
i think you would need to bump `OPENAPI_GENERATOR_CLI_VER` to the latest
version to pick up the fix.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]