G-Node / python-odml

odML libraries
http://g-node.github.io/python-odml/
BSD 4-Clause "Original" or "Old" License
24 stars 30 forks source link

Add id attribute to ValidationErrors #379

Closed mpsonntag closed 4 years ago

mpsonntag commented 4 years ago

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 commented 4 years ago

Closed via PR #389