-
Notifications
You must be signed in to change notification settings - Fork 59
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
Fix Jackson JsonUnwrapped to consider inherited members #435
Fix Jackson JsonUnwrapped to consider inherited members #435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
- Declining Code Health: 0 findings(s) 🚩
- Improving Code Health: 0 findings(s) ✅
- Affected Hotspots: 0 files(s) 🔥
Recommended Review Level: Detailed -- Increased risk for defects: The risk is higher as much of the code in this repo (99% of all commits) is written by other authors.
View detailed results in CodeScene
d4e905d
to
df7eb37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
- Declining Code Health: 0 findings(s) 🚩
- Improving Code Health: 0 findings(s) ✅
- Affected Hotspots: 0 files(s) 🔥
Recommended Review Level: Detailed -- Increased risk for defects: The risk is higher as much of the code in this repo (99% of all commits) is written by other authors.
View detailed results in CodeScene
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
I'll include it in the changelog etc. in the next few days then.
@CarstenWickner thanks for accepting the PR. By any chance, could we get a new release with the fix? We have some new schemas that depend on this working. 🙂 |
Hi @Nephery, I'll do the release tonight. |
Release v4.34.0 has been published and will likely take a couple of hours to be fully propagated to the various artifact repositories. |
Members with the
@JsonUnwrapped
annotation were being completely dropped when inherited from a super-class or interface.This PR fixes the
@JsonUnwrapped
lookup to useResolvedMember
instead ofRawMember
so that it would now consider inherited members. I added a concrete example of how this should work to theIntegrationTest
.