RequestValidator (v2) does not correctly match MediaType when empty consumes is present in the spec

Issue #167 resolved
Petr Macek created an issue

If the specification does not have consumes clause, the incoming request media type is not matched and a validation error is returned.

Expected: e.g. "application/json" media type of request should not trigger validation error for "/" media type in swagger spec, because the specification should accept everything.

Actual: validation error is raised

Patch with test attached

Comments (2)

  1. Log in to comment