(see FasterXML/jackson-jaxrs-providers#162 for background)
When hasMatchingMediaType returns true by default, it is impossible to have a catch-all provider, or even a sensible and predicatable error, when the response doesn’t have a content-type.
So let's add a new JakartaRSFeature, MATCH_ALL_IF_NO_MEDIA_TYPE, defaulting to false for allowing/preventing loose match.
(see FasterXML/jackson-jaxrs-providers#162 for background)
When
hasMatchingMediaTypereturnstrueby default, it is impossible to have a catch-all provider, or even a sensible and predicatable error, when the response doesn’t have a content-type.So let's add a new
JakartaRSFeature,MATCH_ALL_IF_NO_MEDIA_TYPE, defaulting tofalsefor allowing/preventing loose match.