can we get it to also print out what the offending value is?
βοΈ Acceptance Criteria
GivenWhen I performThen I expect
βοΈ Engineering Details
Basically, instead of an error message like this:
{
"severity": "ERROR",
"type": "error.label.schematron",
"line": 560,
"column": 51,
"message": "The attribute pds.attribute must be nulled or equal to one of the following values 'foo', 'bar', 'baz'."
}
they would like an error message like this:
{
"severity": "ERROR",
"type": "error.label.schematron",
"line": 560,
"column": 51,
"message": "The attribute pds.attribute must be nulled or equal to one of the following values 'foo', 'bar', 'baz'. Current value: 'this_isnt_right'"
}
where the actual, failing value is included in the error message. I imagine this should be a comprehensive change in how schematron rules work, so not sure it is worth the effort or if it would require DDWG approval?
@jshughes @rsjoyner not sure how easier or hard this would be and/or if it would require DDWG approval since it will change pretty much every schematron rule error message.
πͺ Motivation
...so that I can know what the bad value was in the label.
π Additional Details
Per B. Deen:
βοΈ Acceptance Criteria
Given When I perform Then I expect
βοΈ Engineering Details
Basically, instead of an error message like this:
they would like an error message like this:
where the actual, failing value is included in the error message. I imagine this should be a comprehensive change in how schematron rules work, so not sure it is worth the effort or if it would require DDWG approval?