Function: processOptional()
processOptional(
schema,ctx,field,params):void
Defined in: packages/core/src/processors/wrappers.ts:44
Process z.optional() — unwraps to the inner type and marks the field as not required.
Delegates to the inner type's processor for all component and constraint extraction.
Parameters
schema
$ZodOptional
The $ZodOptional schema to unwrap.
ctx
The walker context providing the processor registry for inner type dispatch.
field
The base FormField to mutate in-place.
params
Parent path metadata passed through to the inner processor.
Returns
void