XML enum element (with max occurs > 1) is accepting
"Status": [ null ]
which I do not want. I only want to accept valid strings defined in the enum.
Have tried setting the restriction of the enum to minimum length of 1 which did not seem to solve the issue
<simpleType name="statusType">
<restriction base="string" >
<enumeration value="UNDER_VERIFICATION"></enumeration>
<enumeration value="STOPPED"></enumeration>
</restriction>
</simpletype>
usage:
<element name="status" type="common:statusType"
maxOccurs="unbounded" minOccurs="0">
</element>