Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 03 Sep 07:01
· 76 commits to master since this release
aa608d6
  • 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.