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

Fix Jackson JsonUnwrapped to consider inherited members #435

Merged

Conversation

Nephery
Copy link
Contributor

@Nephery Nephery commented Mar 8, 2024

Members with the @JsonUnwrapped annotation were being completely dropped when inherited from a super-class or interface.

This PR fixes the @JsonUnwrapped lookup to use ResolvedMember instead of RawMember so that it would now consider inherited members. I added a concrete example of how this should work to the IntegrationTest.

@Nephery Nephery changed the title Fix Jackson JsonUnwrapped from inherited properties Fix Jackson JsonUnwrapped to consider inherited members Mar 8, 2024
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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

@Nephery Nephery force-pushed the fix-jsonunwrapped-inheritance branch from d4e905d to df7eb37 Compare March 8, 2024 22:15
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a 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

Copy link
Member

@CarstenWickner CarstenWickner left a 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 CarstenWickner merged commit ea0e346 into victools:main Mar 9, 2024
11 checks passed
@Nephery Nephery deleted the fix-jsonunwrapped-inheritance branch March 11, 2024 13:46
@Nephery
Copy link
Contributor Author

Nephery commented Mar 14, 2024

@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. 🙂

@CarstenWickner
Copy link
Member

Hi @Nephery,

I'll do the release tonight.

@CarstenWickner
Copy link
Member

Release v4.34.0 has been published and will likely take a couple of hours to be fully propagated to the various artifact repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants