Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationPipeOptions

Hierarchy

Index

Properties

Optional disableErrorMessages

disableErrorMessages: boolean

Optional dismissDefaultMessages

dismissDefaultMessages: boolean

If set to true, the validation will not use default messages. Error message always will be undefined if its not explicitly set.

Optional exceptionFactory

exceptionFactory: function

Type declaration

Optional forbidNonWhitelisted

forbidNonWhitelisted: boolean

If set to true, instead of stripping non-whitelisted properties validator will throw an error

Optional forbidUnknownValues

forbidUnknownValues: boolean

Setting true will cause fail validation of unknown objects.

Optional groups

groups: string[]

Groups to be used during validation of the object.

Optional skipMissingProperties

skipMissingProperties: boolean

If set to true than validator will skip validation of all properties that are missing in the validating object.

Optional transform

transform: boolean

Optional transformOptions

transformOptions: ClassTransformOptions

Optional validationError

validationError: object

ValidationError special options.

Type declaration

  • Optional target?: boolean

    Indicates if target should be exposed in ValidationError.

  • Optional value?: boolean

    Indicates if validated value should be exposed in ValidationError.

Optional whitelist

whitelist: boolean

If set to true validator will strip validated object of any properties that do not have any decorators.

Tip: if no other decorator is suitable for your property use @Allow decorator.

Generated using TypeDoc