Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register default jackson modules #3837

Open
Sam-Kruglov opened this issue Dec 17, 2020 · 0 comments
Open

Register default jackson modules #3837

Sam-Kruglov opened this issue Dec 17, 2020 · 0 comments

Comments

@Sam-Kruglov
Copy link

I think the ObjectMapperFactory could use the ObjectMapper#findAndRegisterModules. What do you think?

I tested locally in main() in debugger:

Json.mapper()._registeredModuleTypes:
  io.swagger.v3.core.util.ObjectMapperFactory$1
  io.swagger.v3.core.util.DeserializationModule
  com.fasterxml.jackson.datatype.jsr310.JavaTimeModule

new ObjectMapper().findAndRegisterModules()._registeredModuleTypes:
  com.fasterxml.jackson.datatype.jdk8.Jdk8Module
  com.fasterxml.jackson.module.paramnames.ParameterNamesModule
  com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant