File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1010# see https://github.com/swagger-api/swagger-codegen/releases for updating version below
1111docker_image=" swaggerapi/swagger-codegen-cli-v3:3.0.54"
1212# where to grab the definition file
13- openapi_yaml_url=" https://raw.githubusercontent.com/elabftw/elabftw/hypernext /apidoc/v2/openapi.yaml"
13+ openapi_yaml_url=" https://raw.githubusercontent.com/elabftw/elabftw/master /apidoc/v2/openapi.yaml"
1414# folder with the generated python code
1515lib=" generated"
1616html=" html"
@@ -20,7 +20,7 @@ function cleanup {
2020 rm -rfv " $html "
2121}
2222
23- # generate the lib from remote hypernext spec
23+ # generate the lib from remote spec
2424function generate {
2525 cleanup
2626 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
You can’t perform that action at this time.
0 commit comments