Skip to content

Commit

Permalink
Upgrade OpenAPI Generator version for python client generator
Browse files Browse the repository at this point in the history
Use v4.3.0 by default now using the OPENAPI_GENERATOR_COMMIT
variable. This can be overriden by specifying the same variable
in the SETTINGS_FILE

Also, set the `skipValidateSpec` parameter in `openapi/python.xml`
to work around
[this](kubernetes-client#145) bug.
  • Loading branch information
palnabarun committed Apr 27, 2020
1 parent 1c0911f commit 67aac40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions openapi/python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ popd > /dev/null

source "${SCRIPT_ROOT}/openapi-generator/client-generator.sh"
source "${SETTING_FILE}"
OPENAPI_GENERATOR_COMMIT="${OPENAPI_GENERATOR_COMMIT:-v4.3.0}"

CLIENT_LANGUAGE=python; \
CLEANUP_DIRS=(client/api client/apis client/models docs test); \
Expand Down
1 change: 1 addition & 0 deletions openapi/python.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<language>python</language>
<gitUserId>kubernetes-client</gitUserId>
<gitRepoId>python</gitRepoId>
<skipValidateSpec>true</skipValidateSpec>
<configOptions>
<packageName>${generator.package.name}</packageName>
<packageVersion>${generator.client.version}</packageVersion>
Expand Down

0 comments on commit 67aac40

Please sign in to comment.