|
1 | 1 | // Any type keywords |
2 | 2 | boolean-schema-message = A value is not allowed here |
3 | 3 | type-message = Expected a {$expectedTypes} |
4 | | -const-message = Expected {$expected} |
5 | | -enum-message = Expected {$expected} |
| 4 | +const-message = Expected exactly {$expected} |
| 5 | +enum-message = Expected one of {$expected} |
6 | 6 | format-message = Expected a value matching the '{$format}' format |
7 | | -unknown-message = Failed the '{$keyword}' keyword |
| 7 | +unknown-message = Validation failed for '{$keyword}' |
8 | 8 |
|
9 | 9 | // Number keywords |
10 | 10 | exclusiveMaximum-message = Expected a number less than {$exclusiveMaximum} |
11 | 11 | exclusiveMinimum-message = Expected a number greater than {$exclusiveMinimum} |
12 | | -maximum-message = Expected a number less than {$maximum} |
13 | | -minimum-message = Expected a number greater than {$minimum} |
| 12 | +maximum-message = Expected a number less than or equal to {$maximum} |
| 13 | +minimum-message = Expected a number greater than or equal to {$minimum} |
14 | 14 | multipleOf-message = Expected a number that is a multiple of {$multipleOf} |
15 | 15 |
|
16 | 16 | // String keywords |
17 | | -maxLength-message = Expected a string with at most {$maxLength} characters |
| 17 | +maxLength-message = Expected a string with no more than {$maxLength} characters |
18 | 18 | minLength-message = Expected a string with at least {$minLength} characters |
19 | 19 | pattern-message = Expected a string matching the regular expression /{$pattern}/ |
20 | 20 |
|
21 | 21 | // Array keywords |
22 | | -maxItems-message = Expected an array with at most {$maxItems} items |
| 22 | +maxItems-message = Expected an array with no more than {$maxItems} items |
23 | 23 | minItems-message = Expected an array with at least {$minItems} items |
24 | 24 | contains-message = Expected an array that contains {$minContains -> |
25 | | - [1] at least one item that passes |
26 | | - *[other] at least {$minContains} items that pass |
| 25 | + [1] at least one item matching |
| 26 | + *[other] at least {$minContains} items matching |
27 | 27 | } the 'contains' schema |
28 | | -contains-range-message = Expected an array that contains between {$minContains} and {$maxContains} items that pass the 'contains' schema |
29 | | -contains-exact-message = Expected an array that contains {$minContains -> |
30 | | - [1] one item that passes |
31 | | - *[other] {$minContains} items that pass |
| 28 | +contains-range-message = Expected an array containing between {$minContains} and {$maxContains} items matching the 'contains' schema |
| 29 | +contains-exact-message = Expected an array containing {$minContains -> |
| 30 | + [1] exactly one item matching |
| 31 | + *[other] exactly {$minContains} items matching |
32 | 32 | } the 'contains' schema |
33 | | -uniqueItems-message = Duplicated item |
| 33 | +uniqueItems-message = Array items must be unique |
34 | 34 |
|
35 | 35 | // Object keywords |
36 | | -maxProperties-message = Expected an object with at most {$maxProperties} properties |
| 36 | +maxProperties-message = Expected an object with no more than {$maxProperties} properties |
37 | 37 | minProperties-message = Expected an object with at least {$minProperties} properties |
38 | | -required-message = Required {$count -> |
39 | | - [one] property {$required} is |
40 | | - *[other] properties {$required} are |
41 | | -} missing |
| 38 | +required-message = Missing required {$count -> |
| 39 | + [one] property: {$required} |
| 40 | + *[other] properties: {$required} |
| 41 | +} |
42 | 42 |
|
43 | 43 | // Applicators |
44 | | -anyOf-message = Expected none of the alternatives match |
45 | | -oneOf-message = {$matchCount -> |
46 | | - [0] None |
47 | | - *[other] More than one |
48 | | -} of the alternatives match |
| 44 | +anyOf-message = Expected the value to match at least one alternative |
| 45 | +oneOf-message = Expected the value to match exactly one alternative, {$matchCount -> |
| 46 | + [0] but none |
| 47 | + *[other] but more than one |
| 48 | +} matched |
49 | 49 | not-message = Expected a value that doesn't match the 'not' schema |
0 commit comments