Skip to content

Setting @JsonProperty value through an @AliasFor in a custom meta-annotation #5039

Discussion options

You must be logged in to vote

@JacksonAnnotationsInside handling is very simple: all it does is add other annotations of that type -- exactly as they are -- and uses them if it knows them (i.e. looks for known Jackson annotations). It does not have any translation logic, nor knowledge of 3rd party annotations.

For support for other 3rd party annotations (like Spring @AliasFor), custom AnnotationIntrospector functionality would be needed.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@raya-simeonova
Comment options

Comment options

You must be logged in to vote
1 reply
@raya-simeonova
Comment options

Answer selected by raya-simeonova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5038 on March 21, 2025 12:26.