-
Improvement
-
Resolution: Fixed
-
Minor
-
s11
-
None
I have a test that causes a validation error because the parsed data does not adhere to the value of maxInclusive. The important excerpt from the schema is the following (other choices removed):
<xs:element name="root">
|
<xs:complexType>
|
<xs:choice>
|
<xs:element name="max3" dfdl:lengthKind="delimited">
|
<xs:simpleType>
|
<xs:restriction base="xs:int">
|
<xs:maxInclusive value="3" />
|
</xs:restriction>
|
</xs:simpleType>
|
</xs:element>
|
..............
|
The validation error looks like this:
Value '8' is not facet-valid with respect to maxInclusive '3' for type '#AnonType_max3root'.
Would it be possible for the actually type (xs:int) to be pulled for this, instead of #AnonType? Also, the "max3root" is confusing, as it just smashes together the root element and the element in question.
see test test_choice_ignoreValidationErr_01:
daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section02/validation_errors/Validation.tdml
daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section02/validation_errors/TestValidationErrDebug.scala
Note that the test currently passes because I do not include the questionable output in my expected validation error.