diff options
author | Julian Berman <Julian@GrayVines.com> | 2017-12-08 18:46:40 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2017-12-08 18:46:40 -0500 |
commit | 0971b05f0c9e2fc7272e377e2be09d07d8747952 (patch) | |
tree | 02df1dd495638be2c26340006d0c6efa8d24d61f /json/tests/draft7/maximum.json | |
parent | 603c6c3691c5995aee0ec537044dbfc6c7173a62 (diff) | |
parent | 6f29c6b58d6d75527281d8dfa413234ce6df8368 (diff) | |
download | jsonschema-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.json | 28 |
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 + } + ] + } +] |