ValidatorDsl

private constructor(state: State, validators: MutableList<Validator<*>> = mutableListOf(), condition: () -> Boolean = TRUE)(source)

Parameters

state

the State that this DSL creates Validators for. This State is not modified by the DSL itself

validators

the list into which to store Validators that are created in this DSL

condition

the pre-condition to apply to all Validators created by this DSL. If condition returns false during validation, then the output of the Validators is changed to null. The condition applies only to Validators constructed at this level of nesting of the DSL, and not, for example, to those already in validators at construction time