Skip to content

Commit 9b2e581

Browse files
authored
🔨 Update generate-client.sh script, make it fail on errors, fix generation (#1360)
1 parent 55ad3b2 commit 9b2e581

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎scripts/generate-client.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#! /usr/bin/env bash
22

3-
PYTHONPATH=backend python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > openapi.json
3+
set -e
4+
set -x
5+
6+
cd backend
7+
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
8+
cd ..
49
node frontend/modify-openapi-operationids.js
510
mv openapi.json frontend/
611
cd frontend

0 commit comments

Comments
 (0)