eclipse-vertx/vertx-openapi

Be less restrictive in checking content type.

pk-work opened this issue · 0 comments

The validator checks that the content type in the request header and the OpenAPI contract is equal.

This means if the contract specifies that a body has the content type application/json, requests with content type header application/json; charset=utf8 will fail.

We maybe should be less restrictive and check with "startsWith" instead of "equals".