Skip to content

Commit

Permalink
WIP: Update python generator image
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Jun 29, 2024
1 parent 697993f commit 04312c5
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 341 deletions.
4 changes: 2 additions & 2 deletions gen-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo "Unnormalized Version: ${VERSION}"
VERSION="$(python3 -c "from packaging.version import Version; print(Version('${VERSION}'))")"
echo "Version: ${VERSION}"

OPENAPI_PYTHON_IMAGE="${OPENAPI_PYTHON_IMAGE:-docker.io/openapitools/openapi-generator-cli:v4.3.1}"
OPENAPI_PYTHON_IMAGE="${OPENAPI_PYTHON_IMAGE:-docker.io/openapitools/openapi-generator-cli:v7.6.0}"
OPENAPI_RUBY_IMAGE="${OPENAPI_RUBY_IMAGE:-docker.io/openapitools/openapi-generator-cli:v4.3.1}"
OPENAPI_TYPESCRIPT_IMAGE="${OPENAPI_TYPESCRIPT_IMAGE:-docker.io/openapitools/openapi-generator-cli:v5.2.1}"

Expand Down Expand Up @@ -69,7 +69,7 @@ FIX_TASK_ERROR_FILTER='(.components.schemas.TaskResponse|select(.)|.properties.e

if [ "$LANGUAGE" = "python" ]
then
cat "${API_SPEC}" | jq "." > patched-api.json
cat "${API_SPEC}" | jq "${FIX_TASK_CREATED_RESOURCES_FILTER}|${FIX_TASK_ERROR_FILTER}" > patched-api.json

$CONTAINER_EXEC run \
"${ULIMIT_COMMAND[@]}" \
Expand Down
260 changes: 0 additions & 260 deletions templates/python/api.mustache

This file was deleted.

Loading

0 comments on commit 04312c5

Please sign in to comment.