You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One possible problem with different backend format JAX-RS providers is that one can only register a single ObjectMapper via JAX-RS. By default it is reasonable to assume that it is probably right for formats other than JSON.
There are two basic approaches to resolve this problem:
For formats that require custom ObjectMapper, such as XML (which requires XmlMapper), look up that mapper instead of default one.
For formats that may use default ObjectMapper, verify that the backend format (as identified by ObjectMapper.getFactory()), and if not matching, construct a variation with proper factory instance.
Obviously additional tests are needed, both to verify default behavior, as well as ability to (re)configure mappers.
The text was updated successfully, but these errors were encountered:
One possible problem with different backend format JAX-RS providers is that one can only register a single
ObjectMapper
via JAX-RS. By default it is reasonable to assume that it is probably right for formats other than JSON.There are two basic approaches to resolve this problem:
ObjectMapper
, such as XML (which requiresXmlMapper
), look up that mapper instead of default one.ObjectMapper
, verify that the backend format (as identified byObjectMapper.getFactory()
), and if not matching, construct a variation with proper factory instance.Obviously additional tests are needed, both to verify default behavior, as well as ability to (re)configure mappers.
The text was updated successfully, but these errors were encountered: