ef-labs / vertx-jersey

Run jersey in vert.x
MIT License
150 stars 47 forks source link

Support for media types with +json suffix #74

Open jonlindop opened 6 years ago

jonlindop commented 6 years ago

Hi,

With reference to issue #52 I am getting the same issue when using media types with the +json suffix.

As per https://tools.ietf.org/html/rfc6839 section 3:

[RFC4627] defines the "application/json" media type. The suffix "+json" MAY be used with any media type whose representation follows that established for "application/json".

Could this simply allow matches on mediaType.getSubtype().endsWith("+json") for example?