Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add resultMessage for class constraint #92

Open
thomasdegroot18 opened this issue Mar 18, 2022 · 0 comments
Open

Add resultMessage for class constraint #92

thomasdegroot18 opened this issue Mar 18, 2022 · 0 comments

Comments

@thomasdegroot18
Copy link

Thanks for continuing to improve this library!

Observation

Currently the class constraint component produces no message at all. This is a missed opportunity. Together with issue 63 Adding a result message would tie up all of the default constraints.

Expectation

I would propose tweaking the detail validation result message when an Class constraint is violated.

A proposed message could be of type, :

Value is not of type {$class}

Where $class cuold be the rdfs:label if there is a label and otherwise the node value if there is no label is not given.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant