mirror of
https://github.com/furyhawk/home_stack.git
synced 2026-07-21 10:16:47 +00:00
🔨 Update generate-client.sh script, make it fail on errors, fix generation (#1360)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user