adjust generate_rest.sh

This commit is contained in:
Curt Tudor 2024-03-25 12:54:05 -06:00
parent 831c6cb4b7
commit 7f386024e5
No known key found for this signature in database
GPG Key ID: B3CD225AF4EC8E96

View File

@ -9,10 +9,22 @@ command -v swagger >/dev/null 2>&1 || {
command -v openapi >/dev/null 2>&1 || {
echo >&2 "command 'openapi' not installed. see: https://www.npmjs.com/package/openapi-client for installation"
exit 1
}
command -v swagger-codegen 2>&1 || {
echo >&2 "command 'swagger-codegen. see: https://github.com/swagger-api/swagger-codegen for installation"
exit 1
}
command -v openapi-generator-cli 2>&1 || {
echo >&2 "command 'openapi-generator-cli. see: https://www.npmjs.com/package/@openapitools/openapi-generator-cli for installation"
exit 1
}
command -v realpath 2>&1 || {
echo >&2 "command 'realpath. see: https://www.npmjs.com/package/realpath for installation"
exit 1
}
scriptPath=$(realpath $0)