Closed victor-soloviev closed 4 years ago
For XSD types restricted by xs::enumeration either enum of values either String generated, depending on the presense of special characters in the enumeration values.
xs::enumeration
String
Turns out that ONVIF contain a lot of enumeration values with a hyphen:
<xs:simpleType name="StreamType"> <xs:restriction base="xs:string"> <xs:enumeration value="RTP-Unicast"/> <xs:enumeration value="RTP-Multicast"/> </xs:restriction> </xs:simpleType>
Would be nice to have this type as enum (with values sanitiesed of hyphen) rather than just a String.
To achieve it, we need to make our enumeration processing more intelegent.
For XSD types restricted by
xs::enumeration
either enum of values eitherString
generated, depending on the presense of special characters in the enumeration values.Turns out that ONVIF contain a lot of enumeration values with a hyphen:
Would be nice to have this type as enum (with values sanitiesed of hyphen) rather than just a
String
.To achieve it, we need to make our enumeration processing more intelegent.