From 316788f3d132073729b683987fb360836bd47fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 23 Sep 2024 22:28:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20generate-client.sh=20sc?= =?UTF-8?q?ript,=20make=20it=20fail=20on=20errors,=20fix=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generate-client.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/generate-client.sh b/scripts/generate-client.sh index 1327ee6fd1..f7a564fdf0 100644 --- a/scripts/generate-client.sh +++ b/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