All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.neat.CompoundValidators.kt Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
package neat

import kotlin.reflect.KProperty1

open class CompoundValidators

(label: String) : Validators

(label) { internal val properties = mutableListOf>() fun KProperty1.validator() = PropertyValidators("$label.${this.name}", this@CompoundValidators, null, this) // fun KProperty1.validator(builder: (String) -> Validators) = builder("$label ${this.name}") fun KProperty1.validator( builder: (String) -> Validators ) = PropertyValidators("$label.${this.name}", this@CompoundValidators, builder("$label.${this.name}") as CompoundValidators

, this) }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy