diff options
Diffstat (limited to 'third_party/python/jsonschema/json/tests/draft4/minProperties.json')
-rw-r--r-- | third_party/python/jsonschema/json/tests/draft4/minProperties.json | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/third_party/python/jsonschema/json/tests/draft4/minProperties.json b/third_party/python/jsonschema/json/tests/draft4/minProperties.json new file mode 100644 index 0000000000..49a0726e01 --- /dev/null +++ b/third_party/python/jsonschema/json/tests/draft4/minProperties.json @@ -0,0 +1,38 @@ +[ + { + "description": "minProperties validation", + "schema": {"minProperties": 1}, + "tests": [ + { + "description": "longer is valid", + "data": {"foo": 1, "bar": 2}, + "valid": true + }, + { + "description": "exact length is valid", + "data": {"foo": 1}, + "valid": true + }, + { + "description": "too short is invalid", + "data": {}, + "valid": false + }, + { + "description": "ignores arrays", + "data": [], + "valid": true + }, + { + "description": "ignores strings", + "data": "", + "valid": true + }, + { + "description": "ignores other non-objects", + "data": 12, + "valid": true + } + ] + } +] |