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