1 | import { ValidationOptions } from '../decorator/ValidationOptions';
|
2 | /**
|
3 | * Constructor arguments for ValidationMetadata class.
|
4 | */
|
5 | export interface ValidationMetadataArgs {
|
6 | /**
|
7 | * Validation type.
|
8 | */
|
9 | type: string;
|
10 | /**
|
11 | * Validator name.
|
12 | */
|
13 | name?: string;
|
14 | /**
|
15 | * Object that is used to be validated.
|
16 | */
|
17 | target: Function | string;
|
18 | /**
|
19 | * Property of the object to be validated.
|
20 | */
|
21 | propertyName: string;
|
22 | /**
|
23 | * Constraint class that performs validation. Used only for custom validations.
|
24 | */
|
25 | constraintCls?: Function;
|
26 | /**
|
27 | * Array of constraints of this validation.
|
28 | */
|
29 | constraints?: any[];
|
30 | /**
|
31 | * Validation options.
|
32 | */
|
33 | validationOptions?: ValidationOptions;
|
34 | /**
|
35 | * Extra options specific to validation type.
|
36 | */
|
37 | validationTypeOptions?: any;
|
38 | }
|