File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ # elabapi-python changelog
2+
3+ ## 5.0.2 - February 19th 2024
4+
5+ * Update swagger-codegen to 3.0.54 (see https://github.com/elabftw/elabftw/discussions/3930 )
Original file line number Diff line number Diff line change 22 "packageName" : " elabapi_python" ,
33 "pythonPackageName" : " elabapi_python" ,
44 "projectName" : " elabapi-python" ,
5- "packageVersion" : " 5.0.1 " ,
5+ "packageVersion" : " 5.0.2 " ,
66 "packageUrl" : " https://github.com/elabftw/elabapi-python"
77}
Original file line number Diff line number Diff line change 66
77
88# the docker image used to generate the client code
9- # not running latest version because of https://github.com/swagger-api/swagger-codegen/issues/12321
10- # FIXME update to latest once this issue is fixed
11- docker_image=" swaggerapi/swagger-codegen-cli-v3:3.0.41 "
9+ # pinning version to avoid unexpected bugs
10+ # see https://github.com/swagger-api/swagger-codegen/releases for updating version below
11+ docker_image=" swaggerapi/swagger-codegen-cli-v3:3.0.54 "
1212# where to grab the definition file
1313openapi_yaml_url=" https://raw.githubusercontent.com/elabftw/elabftw/hypernext/apidoc/v2/openapi.yaml"
1414# folder with the generated python code
@@ -23,12 +23,12 @@ function cleanup {
2323# generate the lib from remote hypernext spec
2424function generate {
2525 cleanup
26- docker run --user " $( id -u) " :" $( id -gn ) " --rm -v " ${PWD} " :/local " $docker_image " generate -i " $openapi_yaml_url " -l python -o /local/" $lib " -c /local/config.json --git-user-id elabftw --git-repo-id elabapi-python
26+ docker run --user " $( id -u) " :" $( id -u ) " --rm -v " ${PWD} " :/local " $docker_image " generate -i " $openapi_yaml_url " -l python -o /local/" $lib " -c /local/config.json --git-user-id elabftw --git-repo-id elabapi-python
2727}
2828
2929function generate-html {
3030 cleanup
31- docker run --user " $( id -u) " :" $( id -gn ) " --rm -v " ${PWD} " :/local " $docker_image " generate -i " $openapi_yaml_url " -l html2 -o /local/" $html " -c /local/config.json --git-user-id elabftw --git-repo-id elabapi-python
31+ docker run --user " $( id -u) " :" $( id -u ) " --rm -v " ${PWD} " :/local " $docker_image " generate -i " $openapi_yaml_url " -l html2 -o /local/" $html " -c /local/config.json --git-user-id elabftw --git-repo-id elabapi-python
3232}
3333
3434# don't use user/group ids in GH actions
You can’t perform that action at this time.
0 commit comments