Surnet/swagger-jsdoc

Question: how to use `failOnErrors` with CLI?

taschetto opened this issue · 2 comments

I'm using the following npm script to generate a JSON with my specs on CI:

"openapi:generate": "yarn swagger-jsdoc -d src/swagger/swaggerDefinition.js src/routes/**/*.{js,yml,yaml} src/swagger/**/*.yml src/swagger/**/*.js -o swagger.json",

The problem is: I want this to fail on errors. Is there any way to use failOnErrors with the CLI version?

Thanks!

What do you mean "I want this to fail on errors"?

Can you provide more specific what do you want to do?

stale commented

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.