Function: processBoolean()
processBoolean(
schema,ctx,field,_params):void
Defined in: packages/core/src/processors/boolean.ts:19
Process z.boolean() — renders as a Checkbox component (or a component override from the registry).
Marks the field as required since boolean fields always have a value (true/false).
Parameters
schema
$ZodBoolean
The $ZodBoolean schema to process.
ctx
The walker context providing the form registry for component overrides.
field
The base FormField to mutate in-place.
_params
Unused; included for processor signature conformance.
Returns
void
Remarks
Component can be overridden via z.registry<FormMeta>() with { component: 'Switch' }.
The required: true default reflects that a boolean always resolves to true or false — never undefined.