summaryrefslogtreecommitdiff
path: root/json/tests/draft7/maximum.json
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-02-22 17:12:34 -0500
committerJulian Berman <Julian@GrayVines.com>2020-02-22 17:12:34 -0500
commit1fc76078f5f20ffd09e365a23925ecfbe826908e (patch)
tree93fb3fc28ac240edad5253bbefc9c8a8c1225301 /json/tests/draft7/maximum.json
parent0d192e192526252c30c16b3651c293bb5f21a99f (diff)
parentf7930d774c893cfae814a214d9b2ba0c01957928 (diff)
downloadjsonschema-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.json26
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
+ }
+ ]
}
]