bkuhlmann/form-validator/1.2.1

NOTE: the latest version is 1.2.2

Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.

What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/bkuhlmann/form-validator/zipball/1.2.1/

FormValidator.Validators

The Form Validator validators provide functionality needed for validating a form field. These can be mixed and matched as desired.

isBlank : Value -> Error

Validates if value is blank.

isEmpty : Value -> Error

Validates if value is empty.

isInteger : Value -> Error

Validates if value is an integer.

isFloat : Value -> Error

Validates if value is a float.

isIncluded : List String -> Value -> Error

Validates if value is included in list.

isExcluded : List String -> Value -> Error

Validates if value is excluded from list.

isGreaterThan : Int -> Value -> Error

Validates if value is greater than minimum.

isGreaterThanEqualTo : Int -> Value -> Error

Validates if value is greater than or equal to minimum.

isLessThan : Int -> Value -> Error

Validates if value is less than maximum.

isLessThanEqualTo : Int -> Value -> Error

Validates if value is less than or equal to maximum.

isBetween : Int -> Int -> Value -> Error

Validates if value is within minimum and maximum inclusive range.

isLengthGreaterThan : Int -> Value -> Error

Validates if value length is greater than minimum.

isLengthGreaterThanEqualTo : Int -> Value -> Error

Validates if value length is greater than or equal to minimum.

isLengthLessThan : Int -> Value -> Error

Validates if value length is less than maximum.

isLengthLessThanEqualTo : Int -> Value -> Error

Validates if value length is less than or equal to maximum.

isLengthBetween : Int -> Int -> Value -> Error

Validates if value length is between minimum and maximum inclusive range.

isEmail : Value -> Error

Validates if value is an email address.