You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
paroxysm
changed the title
JsonFormat.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT but for composite types
Similar "JsonFormat.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT" but for composite types
Apr 18, 2018
should allow. Unfortunately there seems to be something preventing it with XML; I will be filing a new issue for that.
And yes, this is same as #209, so closing.
Hey guys,
So awhile ago an issue was fixed with the mapper de-serializing empty string types such as
<first/>
into a null, as opposed to a "".There's also a similar issue affecting composite types as well.
Consider pseudo-xsd:
If maven-jaxb-plugin generate POJOs for this, I get pseudo-java:
Given an XmlMapper initialized as so:
If I try to deserialize:
<Parent/>
I'll end up with a null object.
However, one would expect to end up with a non-null instance of "Parent", that has an empty or null list of "Child"
EDIT: Just realized I created a duplicate of #209
The text was updated successfully, but these errors were encountered: