ValidatorScope

Types

Link copied to clipboard
class ValidatableList<T>(val values: List<T>) : List<T>

Functions

Link copied to clipboard
Link copied to clipboard
fun invalid(predicate: () -> Boolean, otherwise: () -> String)
Link copied to clipboard
fun invalidIf(predicate: () -> Boolean)
Link copied to clipboard
fun String.invalidIfIsEmpty(otherwise: () -> String = { EmptyProperty })
Link copied to clipboard
operator fun <T> T.invoke(block: T.() -> Unit): T
Link copied to clipboard
fun valid(predicate: () -> Boolean, otherwise: () -> String)
Link copied to clipboard
fun <T> validationOf(vararg values: T, block: T.() -> Unit)
Link copied to clipboard
fun validIf(predicate: () -> Boolean)