express-openapi-validator
express-openapi-validator copied to clipboard
apiSpec validation before middleware registration
In case apiSpec validation fails (and validateApiSpec is set to true), some error messages are dumped to console, but middleware initialization executes normally. An error is thrown later, when you make an api request.
I am wondering if there is a chance to throw error during initialization, which will prevent my application to start?
Thanks!