maximum.json revision 263646
1263646Sbapt[ 2263646Sbapt { 3263646Sbapt "description": "maximum validation", 4263646Sbapt "schema": {"maximum": 3.0}, 5263646Sbapt "tests": [ 6263646Sbapt { 7263646Sbapt "description": "below the maximum is valid", 8263646Sbapt "data": 2.6, 9263646Sbapt "valid": true 10263646Sbapt }, 11263646Sbapt { 12263646Sbapt "description": "above the maximum is invalid", 13263646Sbapt "data": 3.5, 14263646Sbapt "valid": false 15263646Sbapt }, 16263646Sbapt { 17263646Sbapt "description": "ignores non-numbers", 18263646Sbapt "data": "x", 19263646Sbapt "valid": true 20263646Sbapt } 21263646Sbapt ] 22263646Sbapt }, 23263646Sbapt { 24263646Sbapt "description": "exclusiveMaximum validation", 25263646Sbapt "schema": { 26263646Sbapt "maximum": 3.0, 27263646Sbapt "exclusiveMaximum": true 28263646Sbapt }, 29263646Sbapt "tests": [ 30263646Sbapt { 31263646Sbapt "description": "below the maximum is still valid", 32263646Sbapt "data": 2.2, 33263646Sbapt "valid": true 34263646Sbapt }, 35263646Sbapt { 36263646Sbapt "description": "boundary point is invalid", 37263646Sbapt "data": 3.0, 38263646Sbapt "valid": false 39263646Sbapt } 40263646Sbapt ] 41263646Sbapt } 42263646Sbapt] 43