validate

abstract fun validate(value: T, vararg groups: KClass<*>, failFast: Boolean = false): ValidationResult

Validates the target instance against configured constraints.

Return

ValidationResult containing overall validity status and any detected ValidationErrors.

Parameters

value

The target object instance to validate.

groups

Validation groups to evaluate. If empty, default constraints are evaluated.

failFast

If true, validation terminates immediately upon encountering the first error.