each
Iterates over each element of this object and wraps them with a Validatable before passing them to the block.
Validator<List<String>> {
// Validate that each string is not empty
each { isNotEmpty() }
}
Content copied to clipboard
Iterates over each element of this object and wraps them with a Validatable before passing them to the block.
Validator<List<String>> {
// Validate that each string is not empty
each { isNotEmpty() }
}