Options
All
  • Public
  • Public/Protected
  • All
Menu

Custom options for 'withSchema()' function.

Hierarchy

  • IWithSchemaOptions

Index

Properties

Optional encoding

encoding: BufferEncoding

The default encoding, using for text inputs. Default: 'utf8'

Optional errorHandler

A custom error handler.

Optional limit

limit: number

The maximum size of the body, in bytes. Default: 134217728

Optional use

use: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>> | RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>[]

One or more custom middlewares, which should be executed BEFORE validation middleware is executed.

By default, a matching middleware is trying to be set, based on the schema type.

Generated using TypeDoc