d282446ad6978d58856d453ca1d5ba42994ff0eb
[yaffs-website] / node_modules / is-my-json-valid / test / json-schema-draft4 / maxProperties.json
1 [
2     {
3         "description": "maxProperties validation",
4         "schema": {"maxProperties": 2},
5         "tests": [
6             {
7                 "description": "shorter is valid",
8                 "data": {"foo": 1},
9                 "valid": true
10             },
11             {
12                 "description": "exact length is valid",
13                 "data": {"foo": 1, "bar": 2},
14                 "valid": true
15             },
16             {
17                 "description": "too long is invalid",
18                 "data": {"foo": 1, "bar": 2, "baz": 3},
19                 "valid": false
20             },
21             {
22                 "description": "ignores non-objects",
23                 "data": "foobar",
24                 "valid": true
25             }
26         ]
27     }
28 ]