validator library

Classes

AllowPatternValidator
Validates that string matches the pattern.
CustomValidator<S>
Validator with custom validation logic.
DenyPatternValidator
Validates that string does NOT match the pattern.
DependantValidator<S, SS extends ValidatorTarget>
Base class for validators that depend on a specific target value.
ExactLengthValidator<S>
Validates exact length.
IsDifferentFromValidator<S>
Validates that value differs from another field's value.
IsSameAsValidator<S>
Validates that value equals another field's value.
LengthValidator<S>
Base class for length validators.
MaxLengthValidator<S>
Validates maximum length.
MinLengthValidator<S>
Validates minimum length.
PatternValidator
Base class for pattern-based validators (regex).
RelatedValidator<S>
Base class for validators that depend on another field's value.
RequiredValidator<S>
Validates that a value is not empty or null.
Validator<S>
Base class for all validators.

Mixins

ValidatorTarget<S>
Mixin for objects that hold state to be validated. Used internally for related validation.