Skip to content

Validation errors difficult to match to form inputs #172

Description

@s-taylor

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]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions