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 id attribute to ValidationErrors #379

Closed
mpsonntag opened this issue Apr 15, 2020 · 1 comment
Closed

Add id attribute to ValidationErrors #379

mpsonntag opened this issue Apr 15, 2020 · 1 comment
Assignees

Comments

@mpsonntag
Copy link
Contributor

The ValidationError class provides the attributes obj (odml object raising the issue), msg and rank (warning or error).

Adding an id attribute and adding ids to the available validation handlers would enable to filter the set of ValidationErrors in a validation result to specific warnings or errors.
This would help displaying only specific warning messages and test validation implementations without having to rely on the message itself.

@mpsonntag mpsonntag self-assigned this Apr 23, 2020
@mpsonntag mpsonntag mentioned this issue Apr 30, 2020
3 tasks
@mpsonntag
Copy link
Contributor Author

Closed via PR #389

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