Skip to content

Validation Warning Messages #4

Description

@mrjackdavis

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions