From 2ccd1a7e4b0417064e9cfc5f41d31694725313b7 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Thu, 30 Jul 2026 11:23:21 +0200 Subject: [PATCH] update_version.sh: clear the python client before regenerating it The script now removes the generated C++ model, the frontend client and the published python docs before regenerating, but not python-client/ itself - and docs/python_client/docs is filled by copying that directory. So a schema dropped from the API kept its generated model in the PyPI package and its .md page in the published docs, linked from no index. Eight such pages are in the tree today, JfjochSettingsSsl among them. Co-Authored-By: Claude Opus 5 (1M context) --- update_version.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_version.sh b/update_version.sh index 903c529b..3796924e 100644 --- a/update_version.sh +++ b/update_version.sh @@ -41,6 +41,11 @@ sed -i -e "s/$SRC/$DST/" broker/jfjoch_api.yaml git rm -r broker/gen/model docs/python_client frontend/src/client +# The python generator only overwrites what the current schema produces, and the docs below are +# copied out of this directory wholesale - so without clearing it, a schema that has been removed +# from the API keeps its generated model and its published .md page for good. +rm -rf python-client + java -jar openapi-generator-cli.jar generate -i broker/jfjoch_api.yaml -o python-client/ -g python --git-host=git.psi.ch --git-repo-id jungfraujoch --git-user-id jungfraujoch --additional-properties=packageName=jfjoch_client,packageVersion=$VERSION java -jar openapi-generator-cli.jar generate -i broker/jfjoch_api.yaml -o broker/gen -g cpp-pistache-server