You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Validate declared non-JSON media types as far as their schema allows
instead of reporting every such exchange as a violation (#25). Without a
schema the body is opaque and passes; with a string-typed schema the raw
payload is validated as that string value (request.body.schema / response.body.schema); any other schema fails closed under the new codes request.body.unsupported / response.body.unsupported. Previously a
declared text/plain or application/octet-stream body was always
reported as response.body.media_type "not supported" (or request.body.decode on the request side), making such operations
impossible to contract-test.