build first for tsconfig to exists

This commit is contained in:
Ruben Fiszel
2022-07-31 01:37:26 +02:00
parent 2a0d70dcbc
commit a70589ef23
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -2,12 +2,14 @@
set -e
#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:/' ../openflow.openapi.yaml > ../openflow.openapi.yaml
cp ../openflow.openapi.yaml ../openflow.openapi.yaml.tmp
sed -z 's/ ForloopFlow:\n type: object\n properties:\n value:\n $ref: "#\/components\/schemas\/FlowValue"/ ForloopFlow:\n type: object\n properties:/' ../openflow.openapi.yaml > ../openflow.openapi.yaml.new
mv ../openflow.openapi.yaml.new ../openflow.openapi.yaml
cp ../backend/openapi.yaml openapi.yaml
swagger-cli bundle -r openapi.yaml -o openapi-deref.yaml
rm openapi.yaml #&& rm ../openflow.openapi.yaml
rm openapi.yaml && mv ../openflow.openapi.yaml.tmp ../openflow.openapi.yaml
rm -rf windmill-api/ || true
openapi-python-client generate --config $PWD/python-gen.yaml --path openapi-deref.yaml