eropple / nestjs-openapi3

OpenAPI 3.x document generation and serving for NestJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an option to kill the server on invalid OpenAPI doc

eropple opened this issue · comments

Much like how a failed migration kills the server, OpenapiModule should have an option to exit with a failed error code when your OpenAPI document fails validation.

I often have a half-working OpenAPI document as I'm working on this or that, so this wouldn't make so much sense as a default-on option, but having it as an option in test environments would probably be a good idea.