validate

fun validate(validator: Validator)

Registers validator

Report a problem


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

Registers Validator that should check instances of a kClass using block

Report a problem


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

Registers Validator that should check instances of a T using block

Report a problem


Registers Validator using DSL

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

Report a problem