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.
Fixed.additionalPropertyForOperation() and mediaTypeMismatchForOperation() are built on the valid cases carrying the
JSON media type their target was found under. Since 0.9.0 a body declared
under several media types is generated under each of them, so a body
offering application/json beside multipart/form-data or application/x-www-form-urlencoded produced draws with parts (or form
fields) and no JSON value. The additional-property case then threw LogicException out of Gen::map() on a multipart draw and relabelled a
form body as JSON on a form draw; the media-type case sent an empty body
instead of the schema-valid one it promises to keep. ContractSuite weights
both categories in, so OperationProperty over such an operation aborted
with the exception rather than reporting anything about the document. malformedJsonForOperation() is deliberately left unfiltered: it replaces
the body wholesale and never reads the drawn value, so every draw is as good
a base as a JSON one.