Rule

fun interface Rule

A rule is used by a Form and defines a single validation of that form. If the validation passed, return an empty sequence from invoke

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract operator fun invoke(value: String): Sequence<ValidationError>

A rule, when invoked, returns a sequence of errors that were found. Usually that sequence contains just one error. If the validation passed, return an empty sequence