Add support for non-JSON request/response body validation
Issue #111
resolved
At the moment schema validation is only applied to JSON request/response bodies.
The swagger spec supports applying the same schema definitions to XML bodies. It also supports text/plain bodies using the standard parameter definition syntax.
Validation should be added for these non-JSON payloads.
Comments (4)
-
-
reporter - changed status to resolved
Opened separate issues for multi-part form data and XML. Work will be tracked in those issues.
-
@James Navin, can you point to issue with XML support. Can’t find it.
-
- Log in to comment
It would also be nice to be able to parse JSON payloads that have a non-standard/custom content type as JSON. Right now schema body validation is skipped altogether. Reference 1 Reference 2