xsd-parser-rs icon indicating copy to clipboard operation
xsd-parser-rs copied to clipboard

Handling of case sensitive simple types

Open matzipan opened this issue 1 year ago • 1 comments

In this XSD, the following type exists:

<xsd:simpleType name="yesNoType">
   <xsd:restriction base="xsd:string">
      <xsd:enumeration value="YES"/>
      <xsd:enumeration value="yes"/>
      <xsd:enumeration value="NO"/>
      <xsd:enumeration value="no"/>
   </xsd:restriction>
</xsd:simpleType>

Because xsd-parser tries to change the case of the enum label from YES to Yes and from yes to YES, they clash.

xsd-parser could try to detect such cases and keep the case.

matzipan avatar Dec 13 '23 23:12 matzipan

#162 addresses this but it is a breaking change so it might not get merged. It should fix this issue for you though.

lkirkwood avatar Apr 20 '24 16:04 lkirkwood