Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "apis/validation"

Index

Type aliases

JsonObjectValidationFailedHandler

JsonObjectValidationFailedHandler: (context: JsonObjectValidationFailedHandlerContext) => Response | PromiseLike<Response>

A function that returns the response for a failed JSON validation.

param

The context.

returns

The result with the (new) response context.

Type declaration

Functions

jsonObject

  • jsonObject(optsOrSchema?: JsonObjectOptions | ObjectSchema): express.RequestHandler[]
  • Creates Express middlewares for validating JSON input.

    Parameters

    Returns express.RequestHandler[]

    The created handler(s).

Generated using TypeDoc