Skip to content

Commit

Permalink
🔨 Update generate-client.sh script, make it fail on errors, fix gener…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
tiangolo committed Sep 23, 2024
1 parent 55ad3b2 commit 316788f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/generate-client.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 316788f

Please sign in to comment.