hugapi / hug

Embrace the APIs of the future. Hug aims to make developing APIs as simple as possible, but no simpler.
MIT License
6.86k stars 389 forks source link

JSON-Schema request/response validation #200

Open geoffjukes opened 8 years ago

geoffjukes commented 8 years ago

Is there any support or plan for supporting JSON-Schema for request/response validation?

I assume using a middleware like falconjsonio (https://bitbucket.org/garymonson/falcon-json-io) would do the trick.

198 suggests generation of Swagger/OpenAPI docs. JSON-Schema request/response validation is part of the Swagger/OpenAPI spec.

funkyfuture commented 7 years ago

a pluggable system would be good, as i prefer cerberus for data validation.