Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

SchemaValidationErrorHandler

SchemaValidationErrorHandler: (context: ISchemaValidationErrorHandlerContext) => any

Describes a custom error handler for 'withValidator()' function.

param

The execution context.

Type declaration

Functions

withDataURI

  • Creates middlewares, that parse input as data URI and overwrites props of 'request' object with new 'body' and content type, if valid.

    Parameters

    Returns RequestHandler[]

    The new middlewares.

withSchema

  • Creates a list of middlewares, which are parsing and validation the input body using a schema.

    Parameters

    Returns RequestHandler[]

    The created middlewares.

Generated using TypeDoc