Skip to content
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

Update MapDeserializer to support StreamReadCapability.DUPLICATE_PROPERTIES #3484

Closed
cowtowncoder opened this issue May 17, 2022 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

cowtowncoder commented May 17, 2022

(note: needed to resolve FasterXML/jackson-dataformat-xml#498)

With Jackson 2.12 a system of StreamReadCapability options was introduced; one being DUPLICATE_PROPERTIES.
This capability is true for content formats like XML where underlying content may be exposed in a way that can produce seeming "duplicate" properties (in case of XML, a sequence of elements with same name).
These are, in turn, handled by coercing sequences of duplicates into implicit arrays.

Unfortunately duplicate coercion is only implemented for "untyped" values (nominal type of Object.class), by UntypedObjectDeserializer, and for JsonNode.
But it is not implemented yet for MapDeserializer. It should be.

@cowtowncoder cowtowncoder added to-evaluate Issue that has been received but not yet evaluated 2.14 and removed to-evaluate Issue that has been received but not yet evaluated labels May 17, 2022
@cowtowncoder cowtowncoder added this to the 2.14.0-rc2 milestone Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant