potocpav/elm-json-forms/1.0.0

Form.Error

Form field error handling

type alias Errors =
List ( Pointer, ErrorValue )

List of all errors in a form. One field may generate multiple entries.

= Empty
| InvalidString
| InvalidEmail
| InvalidFormat
| InvalidInt
| InvalidFloat
| InvalidBool
| InvalidNull
| NotConst Value
| NotMultipleOfInt Int
| LessIntThan Int
| LessEqualIntThan Int
| GreaterIntThan Int
| GreaterEqualIntThan Int
| NotMultipleOfFloat Float
| LessFloatThan Float
| LessEqualFloatThan Float
| GreaterFloatThan Float
| GreaterEqualFloatThan Float
| ShorterStringThan Int
| LongerStringThan Int
| NotIncludedIn (List Value)
| Unimplemented String

A single error value for a single field

getErrors : Errors -> List ( String, ErrorValue )

Get all form errors as a list