...
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": "maximum validation with unsigned integer",
30 "schema": {"maximum": 300},
31 "tests": [
32 {
33 "description": "below the maximum is invalid",
34 "data": 299.97,
35 "valid": true
36 },
37 {
38 "description": "boundary point integer is valid",
39 "data": 300,
40 "valid": true
41 },
42 {
43 "description": "boundary point float is valid",
44 "data": 300.00,
45 "valid": true
46 },
47 {
48 "description": "above the maximum is invalid",
49 "data": 300.5,
50 "valid": false
51 }
52 ]
53 }
54]
View as plain text