Hi,
I have added line number information to a parsed document using __line__ attributes. Now, when I get errors I would like to show the user the document path and the line number as well as the error message and the path to the schema that is violated.
Right now, I am doing some login on the errors attribute of the validator to obtain the document path and message. I have tried to look at the document_error_tree but that one seems to contain the same validation error many times with different paths. Basically, it contains the same error for the root and all intermediate nodes leading up to the node that is giving the error.
Is there a way, to easily retrieve just a list of validation errors with their most specific information?
Cheers
Erik