validate

abstract fun validate(value: T, context: ValidationContext): Boolean

Evaluates the constraint rule against the given value.

Return

true if valid; false if the value violates the constraint rule.

Parameters

value

The property value under validation.

context

Navigation context holding metadata regarding the property and parent root.