Validator
Simpler validator abstraction using Cats Validated https://typelevel.org/cats/datatypes/validated.html.
Value members
Concrete methods
Succeed only if all constraints are valid, otherwise prepend calculated errorPrefix.
Succeed only if all constraints are valid, otherwise prepend calculated errorPrefix.
Succeed only if all constraints are valid, otherwise prepend errorPrefix.
Succeed only if all constraints are valid, otherwise prepend errorPrefix.
Succeed if any of the constraints is valid, otherwise prepend errorPrefix.
Succeed if any of the constraints is valid, otherwise prepend errorPrefix.
Succeed if any of the constraints is valid, otherwise prepend errorPrefix.
Succeed if any of the constraints is valid, otherwise prepend errorPrefix.
Validate if the test passes, otherwise fail with error.
Validate if the test passes, otherwise fail with error.
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 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 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.
Validate if the test returns Right, otherwise fail with Left error.
Validate if the test returns Right, otherwise fail with Left error.
Validate if the test returns Right, otherwise fail with Left error prefixed.
Validate if the test returns Right, otherwise fail with Left error prefixed.
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.
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag. If invalid then add prefix to the errors.
Apply constraint to the extracted property if defined, otherwise follow isValidIfNone flag. If invalid then add prefix to the errors.
Validate if the test returns Some, otherwise fail with error.
Validate if the test returns Some, otherwise fail with error.
Apply constraint to the extracted property and if invalid then add prefix to the errors.
Apply constraint to the extracted property and if invalid then add prefix to the errors.
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 tuple.
Combine three constraints to make a constraint on a tuple.
Combine four constraints to make a constraint on a tuple.
Combine four constraints to make a constraint on a tuple.
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.