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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
6 additions and
1 deletions
-
scripts/generate-client.sh
|
|
@ -1,6 +1,11 @@ |
|
|
|
#! /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 |
|
|
|
mv openapi.json frontend/ |
|
|
|
cd frontend |
|
|
|