Closed dietl-conrad closed 1 year ago
Describe the bug
When trying to parse a valid edifact d96a ORDERS file with Smooks#filterSource a parsing exception is thrown:
Caused by: org.smooks.api.SmooksException: Validation Error: E6063 failed facet checks due to: facet enumeration(s): 1|2|3|8 Schema context: E6063 Location line 2180 column 14 in jar:file:.../.gradle/caches/modules-2/files-2.1/org.smooks.cartridges.edi/edifact-schemas/2.0.0-RC2/2a9680cfde02150481b654bc4ff52e65870ffaa3/edifact-schemas-2.0.0-RC2-d96a.jar!/d96a/EDIFACT-Segments.dfdl.xsd
The xds file indeed only specifies the options "1|2|3|8"
But according to this (truugo) and other pages "21" is a valid value here. Also available in the ZIP files of UNECE.
To Reproduce
Pass a valid edifact d96a ORDERS file with value "21" for segment E6063 to Smooks#filterSource method.
Expected behavior
It's expected that the edifact file is parsed without exceptions.
Environment
Example:
This problem should already be fixed with https://github.com/smooks/smooks-edi-cartridge/issues/185. But it seems some parsing is still not possible.
Describe the bug
When trying to parse a valid edifact d96a ORDERS file with Smooks#filterSource a parsing exception is thrown:
Caused by: org.smooks.api.SmooksException: Validation Error: E6063 failed facet checks due to: facet enumeration(s): 1|2|3|8 Schema context: E6063 Location line 2180 column 14 in jar:file:.../.gradle/caches/modules-2/files-2.1/org.smooks.cartridges.edi/edifact-schemas/2.0.0-RC2/2a9680cfde02150481b654bc4ff52e65870ffaa3/edifact-schemas-2.0.0-RC2-d96a.jar!/d96a/EDIFACT-Segments.dfdl.xsd
The xds file indeed only specifies the options "1|2|3|8"
But according to this (truugo) and other pages "21" is a valid value here. Also available in the ZIP files of UNECE.
To Reproduce
Pass a valid edifact d96a ORDERS file with value "21" for segment E6063 to Smooks#filterSource method.
Expected behavior
It's expected that the edifact file is parsed without exceptions.
Environment
Example: