springdoc-openapi
springdoc-openapi copied to clipboard
[Spring Boot 4] Jackson 3 ObjectMapper
Currently, Springdoc 3.0.0, which supports Spring Boot 4 (which in turn favors Jackson 3 over Jackson 2) is using Jackson 2.
This is not desired for the following reasons
- It requires having the Jackson 2 on the classpath
- It requires any schema customization to be done in Jackson 2 instead of the more modern Jackson 3.
It would be nice if you could remove the need to have Jackson 2
- In previous versions Jackson allowed mutating the mapper, and Springdoc's mapper is available using
Json.mapper()- This will not be possible anymore with Jackson 3, so some API would be necessary to allow customization
This is related to an underlying dependency. See answer from project maintainer https://github.com/springdoc/springdoc-openapi/issues/3157#issuecomment-3620878833 and the swagger-core issue https://github.com/swagger-api/swagger-core/issues/4991.