I am running a verification process and there can be one or more validation errors to my data for each feature. I would like to define my own error messages and push them to a list so i later easily can combine an error report.
To solve it I am thinking of using lists. But i cannot figure out how to create an empty list instead of an attribute.
I am thinking to have a list looking somthing like this:
errors{0}.height: "Negative values are not allowed"
errors{1}.height: "Value must not be empty"
errors{0}.quality: "Quality code invalid"
errors{1}.quality: "Quality code must not be empty"
errors{0}.bbox: "Feature is out of bounds, check coordinate system"
I hope you get the idea.
Later i want to use the list to report all the errors each feature might have.
But how can i define an empty list so that i can later populate it with values as the feature go through a step of testst? Can I use Feature manager to make my test and add the validation result to the list?