Browse Source

🔨 Update `generate-client.sh` script, make it fail on errors, fix generation (#1360)

pull/13907/head
Sebastián Ramírez 10 months ago
committed by GitHub
parent
commit
9b2e5813ae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      scripts/generate-client.sh

7
scripts/generate-client.sh

@ -1,6 +1,11 @@
#! /usr/bin/env bash #! /usr/bin/env bash
PYTHONPATH=backend python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > openapi.json set -e
set -x
cd backend
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
node frontend/modify-openapi-operationids.js node frontend/modify-openapi-operationids.js
mv openapi.json frontend/ mv openapi.json frontend/
cd frontend cd frontend

Loading…
Cancel
Save