File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33
44# https://redocly.com/docs/api-reference-docs/configuration/functionality/#featuresopenapi-schema
5- features.openapi :
6- showObjectSchemaExamples : false
7- schemaExpansionLevel : 0
8- scrollYOffset : 72
9- nativeScrollbars : true
10- htmlTemplate : development/redoc-template.html
11- hideDownloadButton : true
12- # https://redocly.com/docs/api-reference-docs/configuration/theming/
13- theme :
14- colors :
15- tonalOffset : 0.1
16- sidebar :
17- width : " 300px"
18- textColor : " #000000"
5+ theme :
6+ openapi :
7+ showObjectSchemaExamples : false
8+ schemaExpansionLevel : 0
9+ scrollYOffset : 72
10+ nativeScrollbars : true
11+ htmlTemplate : development/redoc-template.html
12+ hideDownloadButton : true
13+ # https://redocly.com/docs/api-reference-docs/configuration/theming/
14+ theme :
15+ colors :
16+ tonalOffset : 0.1
17+ sidebar :
18+ width : " 300px"
19+ textColor : " #000000"
Original file line number Diff line number Diff line change 11cd ..
22
33function render() {
4- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli bundle specifications/" $1 " .openapi.yaml -o computable/OAS/" $1 " .openapi.json
4+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli bundle specifications/" $1 " .openapi.yaml -o computable/OAS/" $1 " .openapi.json
55 echo " Creating json files..."
66 cd development
77 docker-compose run php /app/bin/run computable/OAS/" $1 " .openapi.json
88 cd ..
9- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli bundle computable/OAS/" $1 " -codegen.openapi.json --remove-unused-components -o computable/OAS/" $1 " -codegen.openapi.yaml
10- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli bundle computable/OAS/" $1 " -validation.openapi.json -o computable/OAS/" $1 " -validation.openapi.yaml
9+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli bundle computable/OAS/" $1 " -codegen.openapi.json --remove-unused-components -o computable/OAS/" $1 " -codegen.openapi.yaml
10+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli bundle computable/OAS/" $1 " -validation.openapi.json -o computable/OAS/" $1 " -validation.openapi.yaml
1111 echo " Generating HTML file..."
12- docker run --rm --env NODE_OPTIONS=" --max-old-space-size=4048" -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli build-docs computable/OAS/" $1 " -html.openapi.json --cdn -o docs/" $1 " .html -t development/redoc-template.html --templateOptions.page_" $1 "
12+ docker run --rm --env NODE_OPTIONS=" --max-old-space-size=4048" -u 1000 -v " $( pwd) :/spec" redocly/cli build-docs computable/OAS/" $1 " -html.openapi.json --cdn -o docs/" $1 " .html -t development/redoc-template.html --templateOptions.page_" $1 "
1313 echo " Removing json files..."
1414 rm -rfv computable/OAS/* .json
1515}
Original file line number Diff line number Diff line change 22
33function validate() {
44 echo " Validating specifications/" $1 " .openapi.yaml with openapi-cli.."
5- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli lint specifications/" $1 " .openapi.yaml
5+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli lint specifications/" $1 " .openapi.yaml
66 echo " Validating computable/OAS/" $1 " -(validation|codegen).openapi.yaml with openapi-cli.."
7- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli lint computable/OAS/" $1 " -validation.openapi.yaml
8- docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/openapi- cli lint computable/OAS/" $1 " -codegen.openapi.yaml
7+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli lint computable/OAS/" $1 " -validation.openapi.yaml
8+ docker run --rm -u 1000 -v " $( pwd) :/spec" redocly/cli lint computable/OAS/" $1 " -codegen.openapi.yaml
99 echo " Validating computable/OAS/" $1 " -(validation|codegen).openapi.yaml with swagger.."
1010 docker run --rm -u 1000 -v " $( pwd) :/data" swagger-cli validate computable/OAS/" $1 " -validation.openapi.yaml
1111 docker run --rm -u 1000 -v " $( pwd) :/data" swagger-cli validate computable/OAS/" $1 " -codegen.openapi.yaml
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cd ../specifications
22
33case " ${1:- } " in
44 overview|ehr|query|definition)
5- docker run -d --rm -v " $( pwd) :/spec" -p 80:80 -p 32201:32201 redocly/openapi- cli preview-docs " $1 " .openapi.yaml -h 0.0.0.0 -p 80
5+ docker run -d --rm -v " $( pwd) :/spec" -p 80:80 -p 32201:32201 redocly/cli preview-docs " $1 " .openapi.yaml -h 0.0.0.0 -p 80
66 ;;
77 " " )
88 echo " Usage: watch.sh [overview|ehr|query|definition]"
You can’t perform that action at this time.
0 commit comments