File tree 3 files changed +11
-6
lines changed
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 2
2
"packageName" : " elabapi_python" ,
3
3
"pythonPackageName" : " elabapi_python" ,
4
4
"projectName" : " elabapi-python" ,
5
- "packageVersion" : " 5.0.1 " ,
5
+ "packageVersion" : " 5.0.2 " ,
6
6
"packageUrl" : " https://github.com/elabftw/elabapi-python"
7
7
}
Original file line number Diff line number Diff line change 6
6
7
7
8
8
# 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 "
12
12
# where to grab the definition file
13
13
openapi_yaml_url=" https://raw.githubusercontent.com/elabftw/elabftw/hypernext/apidoc/v2/openapi.yaml"
14
14
# folder with the generated python code
@@ -23,12 +23,12 @@ function cleanup {
23
23
# generate the lib from remote hypernext spec
24
24
function generate {
25
25
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
27
27
}
28
28
29
29
function generate-html {
30
30
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
32
32
}
33
33
34
34
# don't use user/group ids in GH actions
You can’t perform that action at this time.
0 commit comments