File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 33To regenerate models, clone [ latest OpenAPI definitions] ( https://github.com/regulaforensics/DocumentReader-web-openapi )
44and set ` DEFINITION_FOLDER ` as path to cloned directory, for example:
55``` bash
6- DEFINITION_FOLDER =" /home/user/projects/DocumentReader-web-openapi"
6+ export DOCS_DEFINITION_FOLDER =" /home/user/projects/DocumentReader-web-openapi"
77```
88Then use next command from the project root:
99``` bash
10- docker run --rm -v " ${PWD} :/client" -v " ${DEFINITION_FOLDER} :/definitions" \
11- openapitools/openapi-generator-cli generate -g python \
12- -i /definitions/index.yml -o /client -c /client/generator-config.json \
13- -t /client/generator-templates
10+ ./update-models.sh
1411```
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ docker run --user " $( id -u) :$( id -g) " --rm -v " ${PWD} :/client" -v " ${DOCS_DEFINITION_FOLDER} :/definitions" \
4+ openapitools/openapi-generator-cli generate -g python \
5+ -i /definitions/index.yml -o /client -c /client/generator-config.json \
6+ -t /client/generator-templates
You can’t perform that action at this time.
0 commit comments