Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Warning Messages #4

Open
mrjackdavis opened this issue Apr 6, 2017 · 0 comments
Open

Validation Warning Messages #4

mrjackdavis opened this issue Apr 6, 2017 · 0 comments

Comments

@mrjackdavis
Copy link
Member

In some cases forms need soft validation, where a warning message is shown, but the field is still valid.

This should be considered as part of #1

And puts forward a case for each field to have an array of validation items. Where each item has a validation status and an associated message.

type ValidationInfo = {
  status: 'VALID' | 'INVALID' | 'LOADING' | 'WARN',
  message: string
};

type DataPath = string;

type FormValidationInfo = {
  [key:DataPath]:ValidationInfo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant