Interface: ValidationStrategy
Defined in: packages/core/src/types.ts:34
Specifies how a field's validation is handled at submit and change time. Set by the L1/L2 optimizers; undefined means use the whole-schema zodResolver.
Properties
mode
mode:
"zodSchema"|"native"|"component-enforced"
Defined in: packages/core/src/types.ts:41
How validation is performed for this field:
'zodSchema'— per-field Zod schema viaregister({ validate })(L1)'native'— HTML/RHF native rules from the constraint bag (L2)'component-enforced'— the component handles validation itself (no RHF rules emitted)
rules?
optionalrules?:NativeRules
Defined in: packages/core/src/types.ts:43
Native RHF validation rules, populated by the L2 optimizer when mode === 'native'.