1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | 'use strict';
|
25 |
|
26 | const msg = module.exports = exports = {};
|
27 |
|
28 | msg.DocumentNotFoundError = null;
|
29 |
|
30 | msg.general = {};
|
31 | msg.general.default = 'Validator failed for path `{PATH}` with value `{VALUE}`';
|
32 | msg.general.required = 'Path `{PATH}` is required.';
|
33 |
|
34 | msg.Number = {};
|
35 | msg.Number.min = 'Path `{PATH}` ({VALUE}) is less than minimum allowed value ({MIN}).';
|
36 | msg.Number.max = 'Path `{PATH}` ({VALUE}) is more than maximum allowed value ({MAX}).';
|
37 | msg.Number.enum = '`{VALUE}` is not a valid enum value for path `{PATH}`.';
|
38 |
|
39 | msg.Date = {};
|
40 | msg.Date.min = 'Path `{PATH}` ({VALUE}) is before minimum allowed value ({MIN}).';
|
41 | msg.Date.max = 'Path `{PATH}` ({VALUE}) is after maximum allowed value ({MAX}).';
|
42 |
|
43 | msg.String = {};
|
44 | msg.String.enum = '`{VALUE}` is not a valid enum value for path `{PATH}`.';
|
45 | msg.String.match = 'Path `{PATH}` is invalid ({VALUE}).';
|
46 | msg.String.minlength = 'Path `{PATH}` (`{VALUE}`) is shorter than the minimum allowed length ({MINLENGTH}).';
|
47 | msg.String.maxlength = 'Path `{PATH}` (`{VALUE}`) is longer than the maximum allowed length ({MAXLENGTH}).';
|