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

feat: add support for com.fasterxml.jackson.annotation.JacksonAnnotationsInside annotation #487

Conversation

smaarn
Copy link

@smaarn smaarn commented Oct 27, 2024

Basically the idea is to ensure that, for any annotation lookup, a fallback to use annotations injected via combo annotations is being used.

It turns out that there was already a mechanism to do that in TypeContext (or *Context interfaces for what it's worth). There were other locations where it wasn't available so I implemented this manually in a dedicated helper class.

Fixes #486

@smaarn smaarn marked this pull request as ready for review October 27, 2024 18:09
@CarstenWickner
Copy link
Member

@smaarn Thank you very much for the effort in creating this PR.

I'm currently busy and unsure when I will get around to properly reviewing this, but I will soon.
Overall, I agree with the approach. At first glance, I'm merely wondering whether it can be generalized further, but first need to wrap my head around it.

@smaarn smaarn changed the title feat: add support for com.fasterxml.jackson.annotation.JacksonAnnotationsInside helper annotation feat: add support for com.fasterxml.jackson.annotation.JacksonAnnotationsInside annotation Oct 31, 2024
@smaarn smaarn requested a review from CarstenWickner October 31, 2024 22:06
CarstenWickner
CarstenWickner previously approved these changes Oct 31, 2024
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.

Thanks again for the contribution.
I like it.

I'll just do a little bit of housekeeping (update the Changelog and "slate-doc" documentation as well as the contributors list), but this looks pretty good already.
Not today anymore though. It's too late. 😃

…n the base package

Remove no longer relevant comment
@smaarn smaarn requested a review from CarstenWickner November 1, 2024 10:04
@CarstenWickner CarstenWickner changed the base branch from main to nested-jackson-annotations November 11, 2024 21:14
@CarstenWickner CarstenWickner merged commit a59c102 into victools:nested-jackson-annotations Nov 11, 2024
11 checks passed
@smaarn smaarn deleted the feat/add-support-for-jackson-annotations-inside-annotation branch November 11, 2024 21:41
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.

Add support for com.fasterxml.jackson.annotation.JacksonAnnotationsInside annotation
2 participants