Variable MapHandlerSchemaConst
MapHandlerSchema: ZodObject<
{
defaults: ZodOptional<ZodArray<ZodString, "many">>;
destinations: ZodOptional<ZodArray<ZodString, "many">>;
mappings: ZodOptional<
ZodArray<
ZodObject<
{
input: ZodOptional<ZodString>;
input_regexp: ZodOptional<ZodString>;
outputs: ZodOptional<ZodArray<ZodAny, "many">>;
},
"strip",
ZodTypeAny,
{ input?: string; input_regexp?: string; outputs?: any[] },
{ input?: string; input_regexp?: string; outputs?: any[] },
>,
"many",
>,
>;
source: ZodOptional<ZodString>;
} & { handler: ZodLiteral<"map"> },
"strip",
ZodTypeAny,
{
defaults?: string[];
destinations?: string[];
handler: "map";
mappings?: { input?: string; input_regexp?: string; outputs?: any[] }[];
source?: string;
},
{
defaults?: string[];
destinations?: string[];
handler: "map";
mappings?: { input?: string; input_regexp?: string; outputs?: any[] }[];
source?: string;
},
> = ...
Map handler schema - variable mapping middleware
Maps request values to variables for use in subsequent handlers.