The Form Validator component models.
List (Field key)
The form model which stores a list of fields for input and validation.
{ key : key
, value : String
, validators : Validators
, errors : Errors
}
The form field, identified by unique key, which stores a value, validators of that value, and validation errors (if any).
List Validator
A list of validators for a field.
String -> Maybe String
A field validator which evaluates to an error string (invalid) or nothing at all (valid).
List Value
A list of field values to be validated.
String
A field value to be validated.
List Error
The corresponding error messages of an invalid field value(s).
Maybe String
The corresponding error message of an invalid field value.