Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationSchema

Validation schema is a decorator-free way of validation of your objects. Also using validation schemas makes this library to be easily used with es6/es5.

Hierarchy

  • ValidationSchema

Index

Properties

Properties

name

name: string

Schema name. This is required, because we tell validator to validate by this schema using its name.

properties

properties: {}

Validated properties.

Type declaration

  • [propertyName: string]: { always?: boolean; constraints?: any[]; each?: boolean; groups?: string[]; message?: string | ((value?: any, constraint1?: any, constraint2?: any) => string); options?: any; type: string }[]

    Name of the object's property to be validated which holds an array of validation constraints.

Generated using TypeDoc