An object representing a failed validation result.
Describes the violation of a group of constraints.
A base trait for validation results.
Describes the violation of a validation rule or constraint.
A validator is a function T => Result
, where T
is the type of the object under validation
and Result is an instance of com.wix.accord.Result.
A base trait for all violation types.
Provides alternative syntax for validation.
An object representing a successful validation result.
Validates the specified object and returns a validation com.wix.accord.Result.
Validates the specified object and returns a validation com.wix.accord.Result. An implicit com.wix.accord.Validator must be in scope for this call to succeed.
The type of the object to validate.
The object to validate.
A validator for objects of type T
.
A com.wix.accord.Result indicating success or failure of the validation.
The entry-point to the Accord library. To execute a validator, simply import it into the local scope, import this package and execute
validate( objectUnderValidation )
.