inputSchema?:
| ZodObject<
any,
UnknownKeysParam,
ZodTypeAny,
{ [key: string]: any },
{ [key: string]: any },
>
| ZodUnion<any>
| ZodIntersection<any, any>
Optional
openApi
openApi?: {
description: string;
outputSchema?:
| ZodType<any, ZodTypeDef, any>
| ZodObject<
any,
UnknownKeysParam,
ZodTypeAny,
{ [key: string]: any },
{ [key: string]: any },
>
| ZodUnion<any>
| ZodIntersection<any, any>;
security?: { [key: string]: string[] | never[] }[];
successCode?: number;
summary: string;
tags?: string[];
}
path
path: string | string[]
Optional
pathSchema
pathSchema?:
| ZodObject<
any,
UnknownKeysParam,
ZodTypeAny,
{ [key: string]: any },
{ [key: string]: any },
>
| ZodUnion<any>
| ZodIntersection<any, any>
Optional
querySchema
querySchema?:
| ZodObject<
any,
UnknownKeysParam,
ZodTypeAny,
{ [key: string]: any },
{ [key: string]: any },
>
| ZodUnion<any>
| ZodIntersection<any, any>
Represents a route in an API.