Swagger JSON request/response payload validation?

215 views
Skip to first unread message

Venkat Nalla

unread,
Apr 23, 2015, 10:43:16 AM4/23/15
to swagger-sw...@googlegroups.com
Is it possible to validate request/response JSON payload against the JSON Schema using swagger? could you please share an example on how it can be done?

thanks

Ivan Goncharov

unread,
Apr 24, 2015, 4:20:59 AM4/24/15
to swagger-sw...@googlegroups.com
Swagger support limited subset of JSON Schema.
Main difference Swagger doesn't support "not", "oneOf", "anyOf" keywords.
But if you have simple JSON Schema you can embedded it in Swagger with only few changes.
Reply all
Reply to author
Forward
0 new messages