Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Add validatorName to the list of error messages #14

@mattruby

Description

@mattruby

It would be nice to be able to style error messages based on the validation type. Perhaps the return type could be set as on option.

Today:
{password: ["Password can't be blank"]}

Suggestion:
{password: [{validatorName:"length", errorMessage: "Password is too short (minimum is 6 characters)", value: "pass"}]}

The catalyst for wanting this change is a warning state where I suggest an email correction: "Did you mean comcast.net in place of comcast.com". This message would be interactive with a link to the corrected address.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions