ConstPasses when the date value is strictly after date.
Passes only when every wrapped validator passes; returns the first failing message.
Passes when at least one wrapped validator passes.
Passes when the date value is strictly before date.
Identity wrapper for a hand-written Validator<T> -- no behavior change, just a fluent entry point alongside the other helpers.
Passes for a plausibly-shaped email address (local@domain).
Passes when the string ends with suffix.
Alias for oneOf -- passes when the value is one of the allowed values.
Passes when the number is finite (rejects Infinity/-Infinity/NaN).
Passes when the date is strictly after the current time.
Passes when the string contains text as a substring.
Passes when the number is an integer.
Passes when the string's length is exactly expected.
Passes when the string matches pattern; message overrides the default failure text.
Passes when the number is less than or equal to maximum.
Passes when the array has at most maximum items.
Passes when the string's length is at most length.
Passes when the number is greater than or equal to minimum.
Passes when the array has at least minimum items.
Passes when the string's length is at least length.
Passes when the number is strictly negative.
Inverts a validator: passes when the wrapped validator fails, and vice versa.
Passes when the value is one of the allowed values.
Passes when the value is undefined, otherwise delegates to the provided validator.
Passes when the date is strictly before the current time.
Passes when the number is strictly positive.
Passes when the number is within [minimum, maximum] inclusive.
Runs the wrapped validator but replaces its failure message with message.
Alias for matches -- passes when the string matches pattern.
Passes when the value is defined and, unless allowEmptyString is set, non-empty.
Passes when the number is a safe integer (Number.isSafeInteger).
Passes when every item in the array is unique.
Passes when the string is a valid absolute URL.
Passes when the string is a valid UUID of one of the given versions (default: any of 1-8).
Shorthand for uuid([version]) -- passes only for that exact UUID version.
Convenience runtime.Validator implementations for common validation patterns (e.g.
validators.range(1, 65535)).