mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 08:01:25 +00:00
fix(python-client): sed openapi to avoid generator circular dependency
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
openapi-deref.yaml
|
||||
dist/
|
||||
__pycache__/
|
||||
openapi.yaml.tmp
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user