validators
Adds multiple validators at once.
This is a convenience method for adding several validation rules in a single call.
Example:
field(AppConfig::port).validators(
{ require(it > 0) { "Port must be positive" } },
{ require(it < 65536) { "Port must be less than 65536" } }
)Content copied to clipboard
Return
this FieldConfigScope for method chaining
Parameters
blocks
vararg of validator lambda functions