cdimascio / openapi-spring-webflux-validator

🌱 A friendly kotlin library to validate API endpoints using an OpenApi 3.0 and Swagger 2.0 specification
Other
97 stars 13 forks source link

Consider automatically registering Jackson modules #29

Open mawis opened 3 years ago

mawis commented 3 years ago

I think it would be helpful if Jackson modules found on the classpath could be loaded automatically. I especially think of the support for java.time.Instant that gets added when the jackson-datatype-jsr310 module is available.

I think that for this to work the defaultObjectMapperFactory in Validate.kt should call .findAndRegisterModules() on the generated ObjectFactory.

cdimascio commented 1 year ago

@mawis this is interesting. could you create a PR with what you're thinking. best!