add OpenAPI generate option to write to file (#919) (#925)

This commit is contained in:
Tom Kralidis
2022-06-21 21:03:19 -04:00
committed by GitHub
parent 59e5d26b1d
commit 3b231c5fea
4 changed files with 19 additions and 5 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ function error() {
cd ${PYGEOAPI_HOME}
echo "Trying to generate openapi.yml"
pygeoapi openapi generate ${PYGEOAPI_CONFIG} > ${PYGEOAPI_OPENAPI}
pygeoapi openapi generate ${PYGEOAPI_CONFIG} --output-file ${PYGEOAPI_OPENAPI}
[[ $? -ne 0 ]] && error "openapi.yml could not be generated ERROR"