PropertyValidators

class PropertyValidators<P, C>(label: String, val parent: CompoundValidators<P>, val nested: CompoundValidators<P>?, val property: KProperty1<P, C>) : Validators<C>

Constructors

Link copied to clipboard
constructor(label: String, parent: CompoundValidators<P>, nested: CompoundValidators<P>?, property: KProperty1<P, C>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun optional(): Validator<C?>
Link copied to clipboard
fun <P, C : Any> PropertyValidators<P, C>.required(message: String = " is required, but was null"): Validator<C>
fun <T> Validators<T>.required(message: String = " is required, but was null"): Validator<T>