-
-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Milestone
Description
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 requiresXmlMapper), look up that mapper instead of default one. - For formats that may use default
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels