diff options
Diffstat (limited to 'json/tests/draft2019-08/minimum.json')
-rw-r--r-- | json/tests/draft2019-08/minimum.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/json/tests/draft2019-08/minimum.json b/json/tests/draft2019-08/minimum.json new file mode 100644 index 0000000..2a9c42b --- /dev/null +++ b/json/tests/draft2019-08/minimum.json @@ -0,0 +1,59 @@ +[ + { + "description": "minimum validation", + "schema": {"minimum": 1.1}, + "tests": [ + { + "description": "above the minimum is valid", + "data": 2.6, + "valid": true + }, + { + "description": "boundary point is valid", + "data": 1.1, + "valid": true + }, + { + "description": "below the minimum is invalid", + "data": 0.6, + "valid": false + }, + { + "description": "ignores non-numbers", + "data": "x", + "valid": true + } + ] + }, + { + "description": "minimum validation with signed integer", + "schema": {"minimum": -2}, + "tests": [ + { + "description": "negative above the minimum is valid", + "data": -1, + "valid": true + }, + { + "description": "positive above the minimum is valid", + "data": 0, + "valid": true + }, + { + "description": "boundary point is valid", + "data": -2, + "valid": true + }, + { + "description": "below the minimum is invalid", + "data": -3, + "valid": false + }, + { + "description": "ignores non-numbers", + "data": "x", + "valid": true + } + ] + } +] |