An object representing a failed validation result.
Describes the violation of a group of constraints.
A base trait for validation results.
Describes a simple validation rule violation (i.
A validator over some type T
.
A base trait for all violation types.
Provides alternative syntax for validation.
An object representing a successful validation result.
A companion object mostly responsible for allowing null-safe validation of boxed Java primitive types.
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.
Overview
An Accord validator is a typeclass, which adds data validation rules over an existing domain model. The
api
module deals with the usage site; details on how to define validators can be found in thecore
module.To use a validator, simply import this package, make sure the validator is in scope and use the validate function:
See Result, Success and Failure for details of the result model.