...
1[
2 {
3 "description": "maximum validation",
4 "schema": {"maximum": 3.0},
5 "tests": [
6 {
7 "description": "below the maximum is valid",
8 "data": 2.6,
9 "valid": true
10 },
11 {
12 "description": "boundary point is valid",
13 "data": 3.0,
14 "valid": true
15 },
16 {
17 "description": "above the maximum is invalid",
18 "data": 3.5,
19 "valid": false
20 },
21 {
22 "description": "ignores non-numbers",
23 "data": "x",
24 "valid": true
25 }
26 ]
27 },
28 {
29 "description": "exclusiveMaximum validation",
30 "schema": {
31 "maximum": 3.0,
32 "exclusiveMaximum": true
33 },
34 "tests": [
35 {
36 "description": "below the maximum is still valid",
37 "data": 2.2,
38 "valid": true
39 },
40 {
41 "description": "boundary point is invalid",
42 "data": 3.0,
43 "valid": false
44 }
45 ]
46 }
47]
View as plain text