diff options
Diffstat (limited to 'src/s3select/rapidjson/bin/jsonschema/tests/draft4/minimum.json')
-rw-r--r-- | src/s3select/rapidjson/bin/jsonschema/tests/draft4/minimum.json | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/s3select/rapidjson/bin/jsonschema/tests/draft4/minimum.json b/src/s3select/rapidjson/bin/jsonschema/tests/draft4/minimum.json new file mode 100644 index 000000000..d5bf000bc --- /dev/null +++ b/src/s3select/rapidjson/bin/jsonschema/tests/draft4/minimum.json @@ -0,0 +1,42 @@ +[ + { + "description": "minimum validation", + "schema": {"minimum": 1.1}, + "tests": [ + { + "description": "above the minimum is valid", + "data": 2.6, + "valid": true + }, + { + "description": "below the minimum is invalid", + "data": 0.6, + "valid": false + }, + { + "description": "ignores non-numbers", + "data": "x", + "valid": true + } + ] + }, + { + "description": "exclusiveMinimum validation", + "schema": { + "minimum": 1.1, + "exclusiveMinimum": true + }, + "tests": [ + { + "description": "above the minimum is still valid", + "data": 1.2, + "valid": true + }, + { + "description": "boundary point is invalid", + "data": 1.1, + "valid": false + } + ] + } +] |