-
-
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
Difference in the handling of ObjectId-property
in JsonIdentityInfo
depending on the deserialization route
#3838
Comments
id-property
in JsonIdentityInfo
depending on the deserialization route.ObjectId-property
in JsonIdentityInfo
depending on the deserialization route.
|
@JooHyukKim No one working AFAIK so feel free to! |
I read about the issue (FasterXML/jackson-module-kotlin#378). The desired outcome is to throw a MismatchedInputException even for the "SetterBased" case. Can you confirm this, @cowtowncoder? Thank you! 👍 PS: I made a PR in #3868. |
@JooHyukKim I think so, although did not dig deep enough (too many things to juggle at this point, alas). |
ObjectId-property
in JsonIdentityInfo
depending on the deserialization route.ObjectId-property
in JsonIdentityInfo
depending on the deserialization route
Thank you @JooHyukKim, as usual! Fix will be in 2.16.0. |
Describe the bug
This is the problem reported in FasterXML/jackson-module-kotlin#378 .
Setter-based deserialization does not generate an error if the
id-property
is not present on theJSON
.On the other hand, instantiator-based deserialization throws a
MismatchedInputException
if theid-property
is not present in theJSON
.Version information
It has been present since at least 2.9.9 and is reproduced in 2.15.0-rc1.
To Reproduce
Expected behavior
It would be correct to be one of the following summarized below.
FasterXML/jackson-module-kotlin#378 (comment)
Additional context
n/a
The text was updated successfully, but these errors were encountered: