You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDS: loading fails when a restriction has a single xs:enumeration or xs:pattern #867
IDSSpecifications.load throws on a valid IDS file when a value restriction has exactly one xs:enumeration:
TypeError: restriction.enumeration.map is not a function
at getParameterValue (importers/parameter.ts)
at createPropertyFacets
at IDSSpecifications.load
fast-xml-parser returns a repeated child as an array but a single child as an object, and getParameterValue assumes an array. The IDS 1.0 XSD allows one or more enumerations, and
a one-value list is common in generated files, for example an allowed-values list that
happens to hold one value.
xs:pattern has the mirror problem: one pattern is read through restriction.pattern.value,
but several patterns arrive as an array, so .value is undefined.
Activity