Skip to content

Adding an alias to the @JsonTypeInfo property lookup #3979

Answered by cowtowncoder
MaxwellBo asked this question in Q&A
Discussion options

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

Comment options

You must be logged in to vote
1 reply
@MaxwellBo
Comment options

Answer selected by MaxwellBo
Comment options

You must be logged in to vote
3 replies
@JooHyukKim
Comment options

@hajdamak
Comment options

@MaxwellBo
Comment options

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