ValixDslBuilder

Fluent programmatic validation builder for dynamic or unannotated data classes.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun <P> field(property: KProperty1<T, P>, builder: PropertyValidationBuilder<P>.() -> Unit)

Registers validation constraints on property extracted by property.

fun <P> field(name: String, propertyGetter: (T) -> P, builder: PropertyValidationBuilder<P>.() -> Unit)

Registers validation constraints on property extracted by propertyGetter.