swaggerize-express icon indicating copy to clipboard operation
swaggerize-express copied to clipboard

Validation and Custom Validation Message

Open mayank-india opened this issue 8 years ago • 2 comments

Any way I can customize the response or parameter validation? Any provision of Validaton Definition similar to securityDefinitions?

mayank-india avatar Sep 15 '16 03:09 mayank-india

The validation of request input parameters are based on the schema or type defined by the parameters. Response validation based on responses in the swagger document, is done by unit tests.

Can you provide an example of the level of customization that you are looking for?

subeeshcbabu-zz avatar Sep 19 '16 18:09 subeeshcbabu-zz

I would like to do the same, to enable validating custom string formats...

type: string
format: uuid

ryanbecker avatar Aug 01 '17 18:08 ryanbecker