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
Currently there is no why to provide a concise error message when validation fails. I.e., if we use the organization shape and data that is missing is thedct:title for organisation:
with shape mapping, it results in this short message:
:ErdriDOR@!:organisationShape when detail=false. The ! indicates that there is an issue with the organisationShape. However, it does not tell you why validation failed. This is the intended purpose of detail=true. But this currently returns this very unhelpful message:
This messages comes form the underlying Shex validation library used. Currently there seems to be no easy way to improve these validation error messages. See this issue.
The text was updated successfully, but these errors were encountered:
henrietteharmse
changed the title
Improve error messages, especially when a validation error is experienced.
Improve validation messages, especially when a validation error is experienced.
Mar 14, 2022
Thanks for using the ShEx-s library. Your are right that the current natural language description of the errors should be improved.
There is also the possibility that the generated result shape map in ShEx-s is generated in JSON which could later be converted to a more helpful message if you want.
Currently there is no why to provide a concise error message when validation fails. I.e., if we use the organization shape and data that is missing is the
dct:title
for organisation:with shape mapping, it results in this short message:
:ErdriDOR@!:organisationShape
whendetail=false
. The!
indicates that there is an issue with theorganisationShape
. However, it does not tell you why validation failed. This is the intended purpose ofdetail=true
. But this currently returns this very unhelpful message:This messages comes form the underlying Shex validation library used. Currently there seems to be no easy way to improve these validation error messages. See this issue.
The text was updated successfully, but these errors were encountered: