Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ValidationPipe

Hierarchy

  • ValidationPipe

Implements

Index

Constructors

constructor

Properties

Protected errorHttpStatusCode

errorHttpStatusCode: ErrorHttpStatusCode

Protected exceptionFactory

exceptionFactory: (errors: ValidationError[]) => any

Type declaration

Protected expectedType

expectedType: Type<any>

Protected Optional isDetailedOutputDisabled

isDetailedOutputDisabled: boolean

Protected isTransformEnabled

isTransformEnabled: boolean

Protected transformOptions

transformOptions: ClassTransformOptions

Protected validateCustomDecorators

validateCustomDecorators: boolean

Protected validatorOptions

validatorOptions: ValidatorOptions

Methods

createExceptionFactory

  • createExceptionFactory(): (Anonymous function)

Protected flattenValidationErrors

Protected isPrimitive

  • isPrimitive(value: unknown): boolean

Protected loadTransformer

  • loadTransformer(): any

Protected loadValidator

  • loadValidator(): any

Protected mapChildrenToValidationErrors

Protected prependConstraintsWithParentProp

Protected stripProtoKeys

  • stripProtoKeys(value: Record<string, any>): void

Protected toEmptyIfNil

  • toEmptyIfNil<T, R>(value: T): R | {}

Protected toValidate

transform

Protected transformPrimitive

Generated using TypeDoc