Function: processLiteral()
processLiteral(
schema,_ctx,field,_params):void
Defined in: packages/core/src/processors/enum.ts:61
Process z.literal() — renders as a read-only Select with a single fixed option.
The field is marked readOnly because literal fields have exactly one valid value.
Parameters
schema
$ZodLiteral
The $ZodLiteral schema whose values define the select options.
_ctx
The walker context (unused for literal processing).
field
The base FormField to mutate in-place.
_params
Unused; included for processor signature conformance.
Returns
void