Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Validation.type
Members list
Type members
Types
A validator is a function that returns a list of validation results.
A validator is a function that returns a list of validation results.
Attributes
- Example
-
Usually a validator is a function that captures some setting or task value, e.g.
validatePackageValidators += { val universalMappings = (Universal / mappings).value () => { if (universalMappings.isEmpty) List(ValidationError(...)) else List.empty } }
The
validation
package object contains various standard validators.
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Value parameters
- validators
-
a list of validators that produce a
Validation
result
Attributes
- Returns
-
aggregated result of all validator function
Runs a list of validators and throws an exception after printing all errors and warnings with the provided logger.
Runs a list of validators and throws an exception after printing all errors and warnings with the provided logger.
Value parameters
- log
-
used to print errors and warnings
- validators
-
a list of validators that produce the validation result