A form constraint.
Defines a set of built-in constraints.
Validation was a failure.
A validation error.
A validation result.
This object provides helpers for creating Constraint
values.
Defines a set of built-in constraints.
This object provides helper methods to construct Invalid
values.
Validation was a success.
Contains the validation API used by
Form
.For example, to define a custom constraint: