Files
fast_api_template/scripts/generate-client.sh
T

14 lines
301 B
Bash
Raw Normal View History

2024-08-29 20:10:49 +02:00
#! /usr/bin/env bash
set -e
set -x
cd backend
python -c "import app.main; import json; print(json.dumps(app.main.app.openapi()))" > ../openapi.json
cd ..
2024-08-29 20:10:49 +02:00
node frontend/modify-openapi-operationids.js
mv openapi.json frontend/
cd frontend
npm run generate-client
npx biome format --write ./src/client