Funx.Validator.GreaterThanOrEqual (funx v0.8.0)
View SourceValidates that a value is greater than or equal to a given reference value
using an Ord comparator.
Options
:value(required) - The reference value to compare against:ord(optional) - An ordering comparator. Defaults toFunx.Ord.Protocol:message(optional) - Custom error message callback(value -> String.t())
Semantics
- If the value compares as
:gtor:eqrelative to the reference, validation succeeds. - If the value compares as
:lt, validation fails. Nothingvalues pass unchanged.Justvalues are unwrapped before comparison.