validate

abstract fun validate(fieldValue: Any?, configInstance: Any)

Validates a field's value during config loading or validation phase.

Parameters

fieldValue

the value of the field (may be null or blank)

configInstance

the full config object this field belongs to (can be used for cross-field validation)

Throws

if validation fails; the exception will halt the load or validation process