Open Tomas-Kraus opened 7 years ago
Hi,
I'm getting the same issue with the type NilReasonType in the xsd file http://schemas.opengis.net/gml/3.2.1/basicTypes.xsd
<simpleType name="NilReasonType">
<annotation>...</annotation>
<union memberTypes="gml:NilReasonEnumeration anyURI"/>
</simpleType>
<simpleType name="NilReasonEnumeration">
<union>
<simpleType>
<restriction base="string">
<enumeration value="inapplicable"/>
<enumeration value="missing"/>
<enumeration value="template"/>
<enumeration value="unknown"/>
<enumeration value="withheld"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="string">
<pattern value="other:\w{2,}"/>
</restriction>
</simpleType>
</union>
</simpleType>
As mentionned by Tomas-Kraus, I would expect it to be translated into a String but JaxB translate it as list. Do I understand uncorrectly the XSD file definition or does JaxB translate it as a list because of:
<union memberTypes="gml:NilReasonEnumeration anyURI">
Thank to give some information on this behaviour.
I have the following type in my xsd: