stevedlawrence opened a new pull request, #1185: URL: https://github.com/apache/daffodil/pull/1185
A new tunable call invalidRestrictionPolicy is added to control how Daffodil handles restrictions that are not allowed by DFDL. This has values of "error", "ignore", "validate, which tell Daffodil to SDE (current behavior), allow but do not use the restriction for validation, or allow and use it for validation, respecitvely. This tunable currently only affects the xs:pattern restriction on non-string types. This allows extra validation capabilities using just XML Schema that would otherwise require a different validation mechanism like schematron. Note that Daffodil's pattern validation implementation already works for non-string types, so relatively few changes are needed to support the "validation" option. The only real change is to move the logic related to this new tunable into the Restriction class, since the patternValues variable in that class is what the SimpleTypeRuntimeData uses for validation. DAFFODIL-2877 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
