diff --git a/python-client/.gitignore b/python-client/.gitignore index 4695bbddd8..75631df92e 100644 --- a/python-client/.gitignore +++ b/python-client/.gitignore @@ -1,3 +1,4 @@ openapi-deref.yaml dist/ __pycache__/ +openapi.yaml.tmp diff --git a/python-client/build.sh b/python-client/build.sh index 985c951fea..a1285d399f 100755 --- a/python-client/build.sh +++ b/python-client/build.sh @@ -1,7 +1,10 @@ #!/bin/bash set -e -swagger-cli bundle -r ../backend/openapi.yaml -o openapi-deref.yaml +#TODO: remove once openapi-python-client supports recursive values +sed -z 's/ FlowModuleValue:\n type: object\n properties:\n value:\n $ref: "#\/components\/schemas\/FlowValue"/ FlowModuleValue:\n type: object\n properties:/' ../backend/openapi.yaml > openapi.yaml.tmp + +swagger-cli bundle -r openapi.yaml.tmp -o openapi-deref.yaml rm -rf windmill-api/ || true openapi-python-client generate --config $PWD/python-gen.yaml --path openapi-deref.yaml