Verify extension
Scope to access most validator facilities.
All the methods in this scope are static
- on
Static Methods
-
all<
S> (List< Validator< verifications) → Validator<S> >S> - Creates a new validator by merging a list of validators
-
at<
S, T> (Selector< S, T> selector, {required Validator<T> validator}) → Validator<S> - Creates a validator on S by applying a validator on a subfield of S.
-
empty<
S> () → Validator< S> - Creates a validator that has yet to attach validation logic.
-
error<
S> (dynamic error) → Validator< S> - Creates an always failing validator
-
fromRegex(
RegExp regex, {required dynamic error}) → Validator< String> - Creates a validator from a regular expression
-
inOrder<
S> (List< Validator< validations) → Validator<S> >S> - Creates a new validator by sequencing validators
-
lift<
S, T> (Selector< S, T> mapping) → ValidatorT<S, T> - Creates a purely input mapping validator
-
notNull<
S> (dynamic error) → Validator< S> - Creates a validator that checks input is not null
-
subject<
S> () → Validator< S> - Creates a validator that has yet to attach validation logic.
-
that<
S> (Predicate< S> predicate, {required dynamic error}) → Validator<S> - Creates a validator from predicate
-
valid<
S> (S subject) → Validator< S> - Creates an always succeeding validator