Skip to content

Adding an alias to the @JsonTypeInfo property lookup #3979

Answered by cowtowncoder
MaxwellBo asked this question in Q&A

You must be logged in to vote

Ok, I can see how this could be useful, but knowing how the implementation works, I must say that it is unlikely that alias support will be added for Type discriminator property.

I suspect various work-arounds may exist; for example, reading of content first as JsonNode, replacing "A?" with "type".
But nothing obvious, nice and clean comes to mind unfortunately.

Replies: 2 comments 4 replies

You must be logged in to vote
1 reply
@MaxwellBo

Answer selected by MaxwellBo

You must be logged in to vote
3 replies
@JooHyukKim

@hajdamak

@MaxwellBo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants