FieldRule

fun interface FieldRule<T>(source)

A functional interface for field validation rules.

This interface represents a validation rule that can be applied to form data to validate a specific field. It supports both regular validation and dry-run validation for pre-validation scenarios.

Parameters

T

The type of the form data.

Functions

Link copied to clipboard
abstract fun test(value: T, dryRun: Boolean): Boolean

Tests the validation rule against the form data.