Request content type validation fails when wildcard content type is specified

Issue #318 resolved
Former user created an issue

This is a continuation of this issue

Affected version: 2.12.0

Using wildcard content type (e.g. image/*) in OpenAPI spec works correctly for response validation but does not work for request validation.

Resulting error:

{
  "messages" : [ {
    "key" : "validation.request.contentType.notAllowed",
    "level" : "ERROR",
    "message" : "Request Content-Type header '[image/jpeg]' does not match any allowed types. Must be one of: [image/*].",
    "context" : {
      "requestPath" : "/projects/d306de6a-8bfb-4f73-ba93-060ba0af442c/images",
      "location" : "REQUEST",
      "requestMethod" : "POST"
    }
  } ]
}

Comments (1)

  1. Log in to comment