-
-
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
@JsonUnwrapped doesn't work for @JsonCreator objects #3754
Comments
You need to provide a Java only example. We do not generally accept Lombok examples. Jackson-databind only has a small number of dependencies and there is no plan to add Lombok to the mix. |
Note: maybe this is the same as #1467 (ultimately), as well as a few issues reported wrt And Records being immutable it is currently impossible to use it with Records. |
I've updated the example to plain java @cowtowncoder I think the docs are rather unclear
|
@jakub-bochenski maybe you can upload a sample repo to Github to demonstrate the issue - I'm not able to reproduce it on my side. |
Hey, you are right. It's failing because somebody had the bright idea to install this modifier:
|
Describe the bug
This is different than #1497
The problem is that apparently you cannot use a @JsonCreator class as a subject of @JsonUnwrapped annotation
Version information
Which Jackson version(s) was this for?
2.14.1
To Reproduce
Trying to deserialize this from
will result in
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "code"
Expected behavior
Data is deserialized
The text was updated successfully, but these errors were encountered: