Skip to content

Commit 6ee7a45

Browse files
committedFeb 19, 2024
Update swagger-codegen to 3.0.54
(see elabftw/elabftw#3930)
1 parent 66c7140 commit 6ee7a45

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed
 

Diff for: ‎CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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)

Diff for: ‎config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
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
}

Diff for: ‎helper.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
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
1313
openapi_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
2424
function 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

2929
function 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

0 commit comments

Comments
 (0)