File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 24
24
"valid" : true
25
25
}
26
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
+ ]
27
53
}
28
54
]
Original file line number Diff line number Diff line change 45
45
"valid" : true
46
46
},
47
47
{
48
- "description" : " below the minimum is invalid" ,
48
+ "description" : " boundary point with float is valid" ,
49
+ "data" : -2.0 ,
50
+ "valid" : true
51
+ },
52
+ {
53
+ "description" : " float below the minimum is invalid" ,
54
+ "data" : -2.0001 ,
55
+ "valid" : false
56
+ },
57
+ {
58
+ "description" : " int below the minimum is invalid" ,
49
59
"data" : -3 ,
50
60
"valid" : false
51
61
},
You can’t perform that action at this time.
0 commit comments