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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user