Closed BarrieP closed 6 years ago
Apologies if this is documented somewhere ( I have looked, but can't find... so if so, please just direct me to it ).
I'm trying to understand what the capabilities are for request and response validation.
i.e. min.max string lengths, regex, etc.
I've been directed to use Joi, but it'd be better for me if I could just pop the constraints in the swagger file, and let the tooling do the rest.
swagger-tools provides full validation of requests/responses based on your OAS/Swagger document. Since OAS/Swagger is built on top of JSON Schema, constraints like the ones you mentioned are supported.
swagger-tools
Apologies if this is documented somewhere ( I have looked, but can't find... so if so, please just direct me to it ).
I'm trying to understand what the capabilities are for request and response validation.
i.e. min.max string lengths, regex, etc.
I've been directed to use Joi, but it'd be better for me if I could just pop the constraints in the swagger file, and let the tooling do the rest.