This library is incorrectly throwing errors for the center pattern in the ICDValueType9CM type:
...
file_0.xml:149: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '523.4' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
file_0.xml:154: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '525.3' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
file_0.xml:348: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '812.2' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
file_0.xml:353: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '726.2' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
file_0.xml:358: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '728.3' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
file_0.xml:363: element ICDValue: Schemas validity error : Element '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValue': '709.8' is not a valid value of the union type '{https://www.aqihq.org/AQIXMLResources/AQISchema.xsd}ICDValueType'.
...
I'm not particularly good at regex, so if I'm misunderstanding something please let me know, but as far as I can tell these values are valid examples of /\d{3}(\.\d{1,2})?/. Thank you.
I'm creating an XML document adhering to this schema: https://www.aqihq.org/AQIXMLResources/AQISchema.xsd
The element name in question is ICDValueType, which is a union of 4 different patterns, one of those patterns containing multiple patterns between |s:
This library is incorrectly throwing errors for the center pattern in the
ICDValueType9CM
type:I'm not particularly good at regex, so if I'm misunderstanding something please let me know, but as far as I can tell these values are valid examples of
/\d{3}(\.\d{1,2})?/
. Thank you.