validate

fun validate(validator: Validator)

Registers validator


fun <T : Any> validate(kClass: KClass<T>, block: suspend (T) -> ValidationResult)

Registers Validator that should check instances of a kClass using block


inline fun <T : Any> validate(noinline block: suspend (T) -> ValidationResult)

Registers Validator that should check instances of a T using block


Registers Validator using DSL

validate {
filter { it is Int }
validation { check(it is Int); ... }
}