diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-02-22 17:12:34 -0500 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-02-22 17:12:34 -0500 |
commit | 1fc76078f5f20ffd09e365a23925ecfbe826908e (patch) | |
tree | 93fb3fc28ac240edad5253bbefc9c8a8c1225301 /json/tests/draft7/maximum.json | |
parent | 0d192e192526252c30c16b3651c293bb5f21a99f (diff) | |
parent | f7930d774c893cfae814a214d9b2ba0c01957928 (diff) | |
download | jsonschema-1fc76078f5f20ffd09e365a23925ecfbe826908e.tar.gz |
Merge commit 'f7930d774c893cfae814a214d9b2ba0c01957928'
* commit 'f7930d774c893cfae814a214d9b2ba0c01957928':
Squashed 'json/' changes from a863dbab..d52866b3
Diffstat (limited to 'json/tests/draft7/maximum.json')
-rw-r--r-- | json/tests/draft7/maximum.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/json/tests/draft7/maximum.json b/json/tests/draft7/maximum.json index 8150984..6844a39 100644 --- a/json/tests/draft7/maximum.json +++ b/json/tests/draft7/maximum.json @@ -24,5 +24,31 @@ "valid": true } ] + }, + { + "description": "maximum validation with unsigned integer", + "schema": {"maximum": 300}, + "tests": [ + { + "description": "below the maximum is invalid", + "data": 299.97, + "valid": true + }, + { + "description": "boundary point integer is valid", + "data": 300, + "valid": true + }, + { + "description": "boundary point float is valid", + "data": 300.00, + "valid": true + }, + { + "description": "above the maximum is invalid", + "data": 300.5, + "valid": false + } + ] } ] |