Open vidhill opened 11 months ago
Is your feature request related to a problem? Please describe.
We are using the swagger-jsdoc cli in an npm script
swagger-jsdoc
e.g.
npx swagger-jsdoc -d definition.js -o api-docs.json index.js
If the scan fails the process exits with a code 0 which indicates success
0
When running on CICD I would like the job to fail so the process would need to exit with non-zero code Describe the solution you'd like
Add a cli flag (suggestion --bail), when the flag is set exit with non-zero code if scanning fails
--bail
Describe alternatives you've considered I could use the programmatic api, but I think this could be a useful feature
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is your feature request related to a problem? Please describe.
We are using the
swagger-jsdoc
cli in an npm scripte.g.
If the scan fails the process exits with a code
0
which indicates successWhen running on CICD I would like the job to fail so the process would need to exit with non-zero code Describe the solution you'd like
Add a cli flag (suggestion
--bail
), when the flag is set exit with non-zero code if scanning failsDescribe alternatives you've considered I could use the programmatic api, but I think this could be a useful feature