-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
@JsonTypeInfo
does not work if the Type Id is an Integer value
#1751
Comments
Just ran into this same limitation, but with |
@JsonTypeInfo
does not work if the Type Id is an Integer value
@volkert-fastned Thanks for reminder -- I had somehow missed this one; turned out simple to improve handling as suggested. |
Much appreciated! Thank you. Any ETA on the release of |
@volkert-fastned No idea at this point. There are few fixes, and release process takes multiple hours. So unlikely to happen before 2023. |
I see that version Thank you! 🙏 |
You are welcome @volkert-fastned ! |
Hello together,
I am using the latest version of jackson (2.9.0) and I am trying to parse the following json:
The first part of the array (0) is the id of the type of the second part of the array. To solve this I came up with the following configuration for the parent class:
Using the snippet above causes the following Exception:
It would be great if it would be possible to also use Integer values as an Id.
Thank you and best regards!
The text was updated successfully, but these errors were encountered: