Validator
Simpler validator abstraction using Cats Validated https://typelevel.org/cats/datatypes/validated.html.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Validator.type
Members list
Type members
Classlikes
Sequence of errors resulting from the logical conjunction of constraints.
Sequence of errors resulting from the logical conjunction of constraints.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Errorclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Invalid result helpers.
Invalid result helpers.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Invalid.type
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Sequence of errors resulting from the logical disjunction of constraints.
Sequence of errors resulting from the logical disjunction of constraints.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Errorclass Objecttrait Matchableclass AnyShow all
Single error representation.
Single error representation.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Errorclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Conjuction. Succeeds only if all constraints are valid.
Conjuction. Succeeds only if all constraints are valid.
Attributes
Conjuction. Succeeds only if all constraints are valid, otherwise prepend calculated errorPrefix.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend calculated errorPrefix.
Attributes
Conjuction. Succeeds only if all constraints are valid, otherwise prepend errorPrefix.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend errorPrefix.
Attributes
Conjuction. Succeeds only if all constraints are valid. Breaks the circuit after first invalid result.
Conjuction. Succeeds only if all constraints are valid. Breaks the circuit after first invalid result.
Attributes
Validator that always succeeds.
Validator that always succeeds.
Attributes
Disjunction. Succeeds if any of the constraints is valid.
Disjunction. Succeeds if any of the constraints is valid.
Attributes
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Attributes
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Attributes
Runs all provided checks.
Runs all provided checks.
Attributes
Apply constraint to each element of the extracted sequence.
Apply constraint to each element of the extracted sequence.
Attributes
Apply constraint to each element of the extracted sequence if non empty.
Apply constraint to each element of the extracted sequence if non empty.
Attributes
Apply constraint to each element of the extracted sequence if non empty. If invalid then compute and add prefix to the errors.
Apply constraint to each element of the extracted sequence if non empty. If invalid then compute and add prefix to the errors.
Attributes
Apply constraint to each element of the extracted sequence if defined.
Apply constraint to each element of the extracted sequence if defined.
Attributes
Apply constraint to each element of the extracted sequence if non empty. If invalid then compute and add prefix to the errors.
Apply constraint to each element of the extracted sequence if non empty. If invalid then compute and add prefix to the errors.
Attributes
Apply constraint to each element of the extracted sequence. If invalid then compute and add prefix to the errors.
Apply constraint to each element of the extracted sequence. If invalid then compute and add prefix to the errors.
Attributes
Apply constraint to the extracted property of type Either[L,R].
Apply constraint to the extracted property of type Either[L,R].
Attributes
Validate if two properties return the same value.
Validate if two properties return the same value.
Attributes
Validate if the test returns Right, otherwise fail with Left error.
Validate if the test returns Right, otherwise fail with Left error.
Attributes
Check if all extracted optional properties are defined.
Check if all extracted optional properties are defined.
Attributes
Check if all extracted optional properties are empty.
Check if all extracted optional properties are empty.
Attributes
Check if all tests fails
Check if all tests fails
Attributes
Check if the extracted optional properties are either all defined or all empty.
Check if the extracted optional properties are either all defined or all empty.
Attributes
Check if all tests passes
Check if all tests passes
Attributes
Check if at least one extracted property is defined.
Check if at least one extracted property is defined.
Attributes
Check if at least one test passes.
Check if at least one test passes.
Attributes
Check if at most one extracted property is defined.
Check if at most one extracted property is defined.
Attributes
Check if at most one test passes.
Check if at most one test passes.
Attributes
Check if one and only one extracted property is defined.
Check if one and only one extracted property is defined.
Attributes
Check if one and only one test passes.
Check if one and only one test passes.
Attributes
Check if one and only one set of properties is fully defined.
Check if one and only one set of properties is fully defined.
Attributes
Check if one and only one set of tests passes.
Check if one and only one set of tests passes.
Attributes
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag.
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag.
Attributes
Validate if the test returns Some, otherwise fail with error.
Validate if the test returns Some, otherwise fail with error.
Attributes
Validate if the test returns None, otherwise fail with error.
Validate if the test returns None, otherwise fail with error.
Attributes
Validate if the test fails, otherwise fail with error.
Validate if the test fails, otherwise fail with error.
Attributes
Validate if the test passes, otherwise fail with error.
Validate if the test passes, otherwise fail with error.
Attributes
Validate if two properties return different value.
Validate if two properties return different value.
Attributes
Validate with the provided constraint applied to the extracted property.
Validate with the provided constraint applied to the extracted property.
Attributes
Validate with the provided constraint applied to the extracted property.
Validate with the provided constraint applied to the extracted property.
Attributes
Validate using the provided implicit constraint applied to the extracted property.
Validate using the provided implicit constraint applied to the extracted property.
Attributes
Depending on the test result follow continue with either first or second constraint.
Depending on the test result follow continue with either first or second constraint.
Attributes
Validator that always fails.
Validator that always fails.
Attributes
Combine two constraints to make a constraint on a pair.
Combine two constraints to make a constraint on a pair.
Attributes
Combine three constraints to make a constraint on a triplet.
Combine three constraints to make a constraint on a triplet.
Attributes
Combine four constraints to make a constraint on a tuple.
Combine four constraints to make a constraint on a tuple.
Attributes
Runs all provided checks. Provided as a named alias to the apply method.
Runs all provided checks. Provided as a named alias to the apply method.
Attributes
Depending on the guard constraint result continue with either first or second constraint.
Depending on the guard constraint result continue with either first or second constraint.
Attributes
If the test is false then try the next constraint, otherwise valid.
If the test is false then try the next constraint, otherwise valid.
Attributes
If the guard constraint is invalid then try next constraint.
If the guard constraint is invalid then try next constraint.
Attributes
If the test is true then check the next constraint, otherwise valid.
If the test is true then check the next constraint, otherwise valid.
Attributes
If the guard constraint is valid then check next constraint.
If the guard constraint is valid then check next constraint.
Attributes
Concrete fields
Successsful validation result alias.
Successsful validation result alias.