Provides a convenience DSL for generating violations:
- Rule violations can be created by specifying a value and constraint message as a tuple, for example:
v -> "must not be empty"
- Group violations can be created by extending the above to include children, as in:
v -> "does not match any of the rules" -> Seq( v.firstName -> "first name must be empty", ... )
Provides a convenience DSL for generating violations:
- Rule violations can be created by specifying a value and constraint message as a tuple, for example:
v -> "must not be empty"
- Group violations can be created by extending the above to include children, as in:v -> "does not match any of the rules" -> Seq( v.firstName -> "first name must be empty", ... )