Validator
Simpler validator abstraction using Cats Validated https://typelevel.org/cats/datatypes/validated.html.
Type members
Classlikes
Sequence of errors resulting from the logical conjunction of constraints.
Sequence of errors resulting from the logical conjunction of constraints.
Sequence of errors resulting from the logical disjunction of constraints.
Sequence of errors resulting from the logical disjunction of constraints.
Value members
Concrete methods
Conjuction. Succeeds only if all constraints are valid.
Conjuction. Succeeds only if all constraints are valid.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend calculated errorPrefix.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend calculated errorPrefix.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend errorPrefix.
Conjuction. Succeeds only if all constraints are valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid.
Disjunction. Succeeds if any of the constraints is valid.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Disjunction. Succeeds if any of the constraints is valid, otherwise prepend errorPrefix.
Apply constraint to each element of the extracted sequence.
Apply constraint to each element of the extracted sequence.
Apply constraint to each element of the extracted sequence if non empty.
Apply constraint to each element of the extracted sequence if non empty.
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.
Apply constraint to each element of the extracted sequence if defined.
Apply constraint to each element of the extracted sequence if defined.
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.
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.
Validate if the test returns Right, otherwise fail with Left error.
Validate if the test returns Right, otherwise fail with Left error.
Check if all extracted optional properties are defined.
Check if all extracted optional properties are defined.
Check if all extracted optional properties are empty.
Check if all extracted optional properties are empty.
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.
Check if at least one extracted property is defined.
Check if at least one extracted property is defined.
Check if at most one extracted property is defined.
Check if at most one extracted property is defined.
Check if one and only one extracted property is defined.
Check if one and only one extracted property is defined.
Check if one and only one set of properties is fully defined.
Check if one and only one set of properties is fully defined.
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag.
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag.
Validate if the test returns Some, otherwise fail with error.
Validate if the test returns Some, otherwise fail with error.
Validate if the test returns None, otherwise fail with error.
Validate if the test returns None, otherwise fail with error.
Validate if the test fails, otherwise fail with error.
Validate if the test fails, otherwise fail with error.
Validate if the test passes, otherwise fail with error.
Validate if the test passes, otherwise fail with error.
Validate if two properties return different value.
Validate if two properties return different value.
Validate with the provided constraint applied to the extracted property.
Validate with the provided constraint applied to the extracted property.
Validate using the provided implicit constraint applied to the extracted property.
Validate using the provided implicit constraint applied to the extracted property.
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.
Combine two constraints to make a constraint on a pair.
Combine two constraints to make a constraint on a pair.
Combine three constraints to make a constraint on a triplet.
Combine three constraints to make a constraint on a triplet.
Combine four constraints to make a constraint on a tuple.
Combine four constraints to make a constraint on a tuple.
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.
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.
If the test is false then try the next constraint, otherwise valid.
If the test is false then try the next constraint, otherwise valid.
If the guard constraint is invalid then try next constraint.
If the guard constraint is invalid then try next constraint.
If the test is true then check the next constraint, otherwise valid.
If the test is true then check the next constraint, otherwise valid.