bkuhlmann/form-validator/1.2.2

Rerouted (archive, verified). The original repository is gone. This copy comes from an archive (Software Heritage). The Lamdera package server serves a copy recovered from swh:1:rev:6a2c83b4256c217a8ca6ed53c26ee776f9cbb0f6 (Software Heritage, origin https://github.com/bkuhlmann/form-validator).

What we checked: Software Heritage archived tag 1.2.2 of github.com/bkuhlmann/form-validator at commit 6a2c83b4256c; its commit 6a2c83b4256c is from 2022-10-22 22:50 UTC, before the version was published (2022-10-22 22:51 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, made from Software Heritage's copy of the files Elm uses, 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.2/

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.