PropertyValidationBuilder

Builder accumulating property rules.

Constructors

Link copied to clipboard
constructor(fieldName: String)

Functions

Link copied to clipboard
fun email(message: String = " must be a valid email")
Link copied to clipboard
fun max(maxValue: Number, message: String = " must be at most ")
Link copied to clipboard
fun min(minValue: Number, message: String = " must be at least ")
Link copied to clipboard
fun minLength(minLen: Int, message: String = " length must be at least ")
Link copied to clipboard
fun notBlank(message: String = " must not be blank")
Link copied to clipboard
fun notNull(message: String = " must not be null")
Link copied to clipboard
fun rule(code: String, message: String, predicate: (P) -> Boolean)