summaryrefslogtreecommitdiff
path: root/json/tests/draft7/maximum.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2017-12-08 18:46:40 -0500
committerJulian Berman <Julian@GrayVines.com>2017-12-08 18:46:40 -0500
commit0971b05f0c9e2fc7272e377e2be09d07d8747952 (patch)
tree02df1dd495638be2c26340006d0c6efa8d24d61f /json/tests/draft7/maximum.json
parent603c6c3691c5995aee0ec537044dbfc6c7173a62 (diff)
parent6f29c6b58d6d75527281d8dfa413234ce6df8368 (diff)
downloadjsonschema-0971b05f0c9e2fc7272e377e2be09d07d8747952.tar.gz
Merge commit '6f29c6b58d6d75527281d8dfa413234ce6df8368'
* commit '6f29c6b58d6d75527281d8dfa413234ce6df8368': Squashed 'json/' changes from 9567c58..86f965e
Diffstat (limited to 'json/tests/draft7/maximum.json')
-rw-r--r--json/tests/draft7/maximum.json28
1 files changed, 28 insertions, 0 deletions
diff --git a/json/tests/draft7/maximum.json b/json/tests/draft7/maximum.json
new file mode 100644
index 0000000..8150984
--- /dev/null
+++ b/json/tests/draft7/maximum.json
@@ -0,0 +1,28 @@
+[
+ {
+ "description": "maximum validation",
+ "schema": {"maximum": 3.0},
+ "tests": [
+ {
+ "description": "below the maximum is valid",
+ "data": 2.6,
+ "valid": true
+ },
+ {
+ "description": "boundary point is valid",
+ "data": 3.0,
+ "valid": true
+ },
+ {
+ "description": "above the maximum is invalid",
+ "data": 3.5,
+ "valid": false
+ },
+ {
+ "description": "ignores non-numbers",
+ "data": "x",
+ "valid": true
+ }
+ ]
+ }
+]