canceraiddev/elm-form-builder/28.0.0

NOTE: the latest version is 28.0.1

Form.Validate

Form.Validate

Validate

validate : Locale -> Fields -> Maybe Fields
validateField : Locale -> Fields -> Field -> Result Error Field

Validator API for an IntegerField being valid.

type Error
= GreaterThanMax Int
| LessThanMin Int
| GreaterThanMaxOrLessThanMin Int Int
| EmptyIntegerError

Predicates

isValid : Locale -> Fields -> Bool

Errors

errorToMessage : Locale -> Error -> String