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.
The
ValidationError
class provides the attributesobj
(odml object raising the issue),msg
andrank
(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.