diff options
Diffstat (limited to 'third_party/python/jsonschema/json/tests/draft3/maximum.json')
-rw-r--r-- | third_party/python/jsonschema/json/tests/draft3/maximum.json | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/python/jsonschema/json/tests/draft3/maximum.json b/third_party/python/jsonschema/json/tests/draft3/maximum.json new file mode 100644 index 0000000000..86c7b89c9a --- /dev/null +++ b/third_party/python/jsonschema/json/tests/draft3/maximum.json @@ -0,0 +1,42 @@ +[ + { + "description": "maximum validation", + "schema": {"maximum": 3.0}, + "tests": [ + { + "description": "below the maximum is valid", + "data": 2.6, + "valid": true + }, + { + "description": "above the maximum is invalid", + "data": 3.5, + "valid": false + }, + { + "description": "ignores non-numbers", + "data": "x", + "valid": true + } + ] + }, + { + "description": "exclusiveMaximum validation", + "schema": { + "maximum": 3.0, + "exclusiveMaximum": true + }, + "tests": [ + { + "description": "below the maximum is still valid", + "data": 2.2, + "valid": true + }, + { + "description": "boundary point is invalid", + "data": 3.0, + "valid": false + } + ] + } +] |