krakenjs / swaggerize-express

Design-driven apis with swagger 2.0 and express.
Other
354 stars 81 forks source link

Validation and Custom Validation Message #109

Open mayank-india opened 7 years ago

mayank-india commented 7 years ago

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

subeeshcbabu-zz commented 7 years ago

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?

ryanbecker commented 6 years ago

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

type: string
format: uuid