API reference / @backpack/aws-lambda / rest / Options
Interface: Options
Extended by
Properties
required?
ts
optional required: boolean;
Whether the result is required. If true, will throw a RequestValidationError when no values are present.
validated?
ts
optional validated: ZodType<any, ZodTypeDef, any>;
Validated the result using a Zod schema. If invalid, it will throw a RequestValidationError with the Zod error associated to it.