summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/maxProperties.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft2020-12/maxProperties.json')
-rw-r--r--json/tests/draft2020-12/maxProperties.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/maxProperties.json b/json/tests/draft2020-12/maxProperties.json
index aa7209f..acec142 100644
--- a/json/tests/draft2020-12/maxProperties.json
+++ b/json/tests/draft2020-12/maxProperties.json
@@ -36,6 +36,22 @@
]
},
{
+ "description": "maxProperties validation with a decimal",
+ "schema": {"maxProperties": 2.0},
+ "tests": [
+ {
+ "description": "shorter is valid",
+ "data": {"foo": 1},
+ "valid": true
+ },
+ {
+ "description": "too long is invalid",
+ "data": {"foo": 1, "bar": 2, "baz": 3},
+ "valid": false
+ }
+ ]
+ },
+ {
"description": "maxProperties = 0 means the object is empty",
"schema": { "maxProperties": 0 },
"tests": [