Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationOptions

Options used to pass to validation decorators.

Hierarchy

  • ValidationOptions

Index

Properties

Optional always

always: undefined | boolean

Indicates if validation must be performed always, no matter of validation groups used.

Optional context

context: any

Optional each

each: undefined | boolean

Specifies if validated value is an array and each of its items must be validated.

Optional groups

groups: undefined | string[]

Validation groups used for this validation.

Optional message

message: undefined | string | ((validationArguments: ValidationArguments) => string)

Error message to be used on validation fail. Message can be either string or a function that returns a string.

Generated using TypeDoc