summaryrefslogtreecommitdiff
path: root/json/tests/draft7/minProperties.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft7/minProperties.json')
-rw-r--r--json/tests/draft7/minProperties.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft7/minProperties.json b/json/tests/draft7/minProperties.json
index 49a0726..9f74f78 100644
--- a/json/tests/draft7/minProperties.json
+++ b/json/tests/draft7/minProperties.json
@@ -34,5 +34,21 @@
"valid": true
}
]
+ },
+ {
+ "description": "minProperties validation with a decimal",
+ "schema": {"minProperties": 1.0},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": {"foo": 1, "bar": 2},
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": {},
+ "valid": false
+ }
+ ]
}
]