-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
configOverride.setMergeable(false)
not supported by ArrayNode
#3338
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
Comments
Fix might add a check for configOverride(ArrayNode.class).setMergeable(false); on line 502 in JsonNodeDeserializer. |
Thank you for reporting this issue & apologies for slow follow up. This looks like a legit issue, thank you for also providing a reproduction. |
configOverride setMergeable(false)
not supported by ArrayNode
Yes, currently this setting is not considered for any |
@cowtowncoder Adding it to the JsonNodeFeatures sounds ok by me. |
@cowtowncoder Is there a workaround for this as of now? |
@TsvetanKonstantinov not that I know of. |
has anyone found a workaround for this? |
configOverride setMergeable(false)
not supported by ArrayNode
configOverride.setMergeable(false)
not supported by ArrayNode
Note to self: I think |
Finally found time to work on this and implemented merge-blocking for upcoming 2.14.0. |
Describe the bug
When updating a JsonNode containing an array. An update will always add the data to the array, even when the
the mapper is configured to not merge Object arrays, ArrayNode, and Collections.
Version information
2.13.0
To Reproduce
Below a Junit5 test
Expected behavior
I would like to have the mapper to replace the array, because now it will never replace it.
Additional context
Related issue JsonMerge got unexpected result for List #2315
The text was updated successfully, but these errors were encountered: