Repository navigation
Conversation
7633f49 to
7b93974
Compare
0de7198 to
f60ee1e
Compare
|
I have removed many of the changes associated with java 17, so the PR is now much smaller. @cbot59, thanks for the comment! JsonMapper is a descendant of ObjectMapper, so |
|
Hey everyone -- thanks to @vpelikh, we now have Jackson 3 and Java 17 support. But I didn't want to wait, so I have it available here! His branch is available as a dependency, just add this to your build.gradle file or pom.xml equivalent: |
No, it doesn't, because the |
|
Any update on this? |
|
Any chance that a maintainer takes a look here? |
Yes, I’ve had this workaround in use in production for the last 2 weeks: |
This does not work for me: |
|
@daniel-kmiecik @Mattias-Sehlstedt @ewaostrowska, hey! I see you've done the last commits to this repository. Can anyone check out this PR? |
|
Hi @vpelikh, I am only a contributor, so I can unfortunately not do anything to help. But the other two are maintainers and will hopefully assist you. |
|
@MichakrawSB Is there any ETA for this feature? Can we please prioritize this? |
|
It would be really great if you could prioritize this 🙏 |
|
Is this PR not progressing? |
|
Any information on this yet? Will this also make it work with the newest springboot and java 26? |
|
I'm running the current version with latest Spring Boot/Jackson 3 on Java 26 without issues. |
Yes, it works. However, you probably need to add Jackson 2 compatibility support using the deprecated classes. It does work, but it is not an ideal solution. |
|
Is there any plan on merging this or maybe adding this to the next major version instead? |
|
Going to be forced to ditch swagger and find another solution soon 😅
|
|
Hey, any update on this? this has been open since january 1st and there’s a lot of interest here compared to most PRs, but it’s still just sitting in “review required” while multiple releases went out is this actually planned to be merged anytime soon or is it blocked on something? |
No, you don't. Just upgrade Spring Boot and migrate your code to Jackson 3. As long as swagger-core depends on Jackson 2, they will pull it in and just use it. I wonder how many people give up before even trying to do the update. |
I suspect you might not have used certain annotations from the Or you may have added both Jackson 2 and Jackson 3 annotations at the same time during the migration. For example: @tools.jackson.databind.annotation.JsonNaming(tools.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy.class)
@com.fasterxml.jackson.databind.annotation.JsonNaming(com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy.class)
public class SampleVO {If that's the case, it's really a nagging annoyance. |
|
Good point @zqq90, I'm indeed not using any of those. |
|
@ewaostrowska is it possible to prioritize this higher? Alot of teams are waiting for this :) |
|
I resolved the current master conflicts and migrated the Jackson databind imports added since this branch was opened. Since I cannot push directly to the contributor fork, I opened vpelikh#127 into Local validation is green:
|
d723781 to
a8d6456
Compare
|
@djankows I think this is ready for the builds and review. Could you take a look? I am migrating to Jackson 3 for the projects in my company, and this is blocking. Sorry to bother 😅 |
changes: - update maven-compiler-plugin to latest 3.14.1 - update maven-javadoc-plugin to latest 3.12.0 - update jacoco-maven-plugin to latest 0.8.14 - set maven.compiler.release to 17 - set source to 17 and update link to javadoc for maven-javadoc-plugin configuration - set java-version to 17 in github workflows - set java version to 17 in swagger-gradle-plugin
Signed-off-by: Vasily Pelikh <[email protected]>
a8d6456 to
a3bb209
Compare
|
I'm using @vpelikh's fork in a project that I upgraded, and I ran into some significant schema drift regarding required fields. Posting my workaround here in case it helps others / can be fixed upstream Essentially:
The workaround was to: in Turn off the automatic And then re-register |
|
@mschout thanks for bug report. Just released new version 5.0.3 with fix. |
|
Hi @djankows and @ewaostrowska, could we please get some concrete feedback on this PR? This has been open since January, has received multiple follow-ups from the community, and yet there still doesn't seem to be any clear indication of whether or when it will be reviewed. Jackson 3 support is no longer just a nice-to-have — it is becoming increasingly relevant as projects move towards Spring Boot 4. At this point, repeatedly asking for an update without getting any response is honestly getting a bit frustrating. Could one of you please take a look, or at least let us know what is blocking this PR and whether there is a realistic path towards getting it merged? Even a clear "we're not going to work on/review this right now" would be more useful than continued silence. Thanks. |
|
@daniel-kmiecik Any chance that you can take a look at this PR? |
|
Hey @vpelikh, We appreciate the contribution, a member of the team will be reviewing this shortly, We have posted a full reply in the linked issue Many thanks, Yousaf |
|
@YOU54F, thank you for the feedback. I really appreciate that the team is ready to start reviewing. Before you dive in, I would like to bring this PR up to date – resolve conflicts with the current |
|
Many thanks Vasily, we look forward to it 🙌🏾 |
|
@vpelikh, please hold on. We've already been working on top of your changes on a separate branch here. We rebased your commits, resolved all merge conflicts, and then performed a thorough migration review. The review confirmed that the core migration is solid. All tests pass, serializers/deserializers and coordinates were faithfully migrated. However, it uncovered issues stemming mainly from Jackson 3's changed defaults and removed APIs that weren't fully compensated across all mapper factory methods. We fixed issues, added regression tests for each, and did some code quality improvements. We still need some time to verify that all Jackson 3 behavioral changes are fully accounted for in the codebase. Additionally, moving from Jackson 2 to 3 along with the Java version bump requires a new major release, which also means adjustments to our CI/CD pipelines. I'll close this PR shortly and open ours. Your contribution will of course be credited in the commits. Thank you for driving the initial migration work. We also apologize for the long wait on picking this up. Yousaf has already explained the reasons in his message. |
|
@daniel-kmiecik, thank you for the detailed update and for letting me know. I will wait for team's PR. Feel free to close this one. |

Description
This PR consists of two commits:
Fixes: #4991
Type of Change
Checklist
Screenshots / Additional Context