diff options
Diffstat (limited to 'json/tests/draft7/maxItems.json')
-rw-r--r-- | json/tests/draft7/maxItems.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft7/maxItems.json b/json/tests/draft7/maxItems.json index 3b53a6b..f0c36ab 100644 --- a/json/tests/draft7/maxItems.json +++ b/json/tests/draft7/maxItems.json @@ -24,5 +24,21 @@ "valid": true } ] + }, + { + "description": "maxItems validation with a decimal", + "schema": {"maxItems": 2.0}, + "tests": [ + { + "description": "shorter is valid", + "data": [1], + "valid": true + }, + { + "description": "too long is invalid", + "data": [1, 2, 3], + "valid": false + } + ] } ] |