Skip to content

Commit

Permalink
Merge pull request #98 from mdellweg/update_container
Browse files Browse the repository at this point in the history
Update container
  • Loading branch information
mdellweg authored Dec 10, 2024
2 parents cc49470 + 55c7e88 commit f1a4448
Show file tree
Hide file tree
Showing 7 changed files with 1,560 additions and 5 deletions.
9 changes: 4 additions & 5 deletions gen-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ language = sys.argv[1]
core_version = Version(sys.stdin.read())
if language.lower() == "python":
print("v4.3.1")
if core_version >= Version("3.70.dev"):
print("v7.10.0")
else:
print("v4.3.1")
elif language.lower() == "ruby":
print("v4.3.1")
elif language.lower() == "typescript":
Expand Down Expand Up @@ -94,10 +97,6 @@ fi

REMOVE_COOKIE_AUTH_FILTER='del(.paths[][].security|select(.)[]|select(.cookieAuth))|del(.components.securitySchemes.cookieAuth)'

# These two may be needed when upgrading the generator image
FIX_TASK_CREATED_RESOURCES_FILTER='(.components.schemas.TaskResponse|select(.)|.properties.created_resources.items) |= {"$oneOf":[{type:"null"},.]}'
FIX_TASK_ERROR_FILTER='(.components.schemas.TaskResponse|select(.)|.properties.error) |= (del(.readOnly) | .additionalProperties.type = "string")'

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

0 comments on commit f1a4448

Please sign in to comment.