AsyncHandlerOptions
Options for the asyncHandler function.
Properties
bodySchema?
optionalbodySchema?:Record<string,OpenApiSchemaProperty>
Schema for validating request body. When provided and validation is enabled, the request body will be validated against this schema before the handler runs.
querySchema?
optionalquerySchema?:Record<string,OpenApiSchemaProperty>
Schema for validating query parameters. When provided and validation is enabled, query params will be validated against this schema before the handler runs.
validate?
optionalvalidate?:boolean
Override global validation setting for this handler.
true: Enable validation regardless of global settingfalse: Disable validation regardless of global settingundefined: Use global setting