Put openflow.openapi.yaml at root for visibility #290

This commit is contained in:
Ruben Fiszel
2022-07-30 20:10:45 +02:00
committed by GitHub
parent 47e5a0ce10
commit c4ea52b4c3
5 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -2,12 +2,12 @@
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:/' ../backend/openflow.openapi.yaml > openflow.openapi.yaml
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 ../backend/openapi.yaml openapi.yaml
swagger-cli bundle -r openapi.yaml.tmp -o openapi-deref.yaml
rm openapi.yaml && rm openflow.openapi.yaml
rm openapi.yaml && rm ../openflow.openapi.yaml
rm -rf windmill-api/ || true
openapi-python-client generate --config $PWD/python-gen.yaml --path openapi-deref.yaml