Apologies as I should have thought of this earlier when discussing #169 but would it also make sense to include an array of errors per field? This would be very useful in trying to map these back to form fields when there's been a validation error. Else we have to parse a comma separated string which is going to be flakey. Like...
{
[fieldname1]: [errorMessage1, errorMessage2]
[fieldname2]: [errorMessage3]
}
Apologies as I should have thought of this earlier when discussing #169 but would it also make sense to include an array of errors per field? This would be very useful in trying to map these back to form fields when there's been a validation error. Else we have to parse a comma separated string which is going to be flakey. Like...