1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ValidationMetadata = void 0;
|
4 |
|
5 |
|
6 |
|
7 | class ValidationMetadata {
|
8 |
|
9 |
|
10 |
|
11 | constructor(args) {
|
12 | |
13 |
|
14 |
|
15 | this.groups = [];
|
16 | |
17 |
|
18 |
|
19 | this.each = false;
|
20 | |
21 |
|
22 |
|
23 | this.context = undefined;
|
24 | this.type = args.type;
|
25 | this.target = args.target;
|
26 | this.propertyName = args.propertyName;
|
27 | this.constraints = args.constraints;
|
28 | this.constraintCls = args.constraintCls;
|
29 | this.validationTypeOptions = args.validationTypeOptions;
|
30 | if (args.validationOptions) {
|
31 | this.message = args.validationOptions.message;
|
32 | this.groups = args.validationOptions.groups;
|
33 | this.always = args.validationOptions.always;
|
34 | this.each = args.validationOptions.each;
|
35 | this.context = args.validationOptions.context;
|
36 | }
|
37 | }
|
38 | }
|
39 | exports.ValidationMetadata = ValidationMetadata;
|
40 |
|
\ | No newline at end of file |