I have a model validator to check the naming convention of nodes in a model hierarchy
(top parent node, child model node, child lod node etc).
Currently I am using assert to check each node name.
However, the actual user experience is :
run validation, see error, fix node name
run validation again, see next error, fix node name
repeat this process until all node name errors are fixed
This is inefficient and not a good user experience.
When there are multiple nodes with incorrect names,
I would like to display all the node name errors once.
Is this possble to do in a single validator ?
Currently, the validator will stop after hitting the first assert.
I have tried passing a list of error messages to raise ValueError(error_list) but it doesnt work well.