1268896Sbapt[ 2268896Sbapt { 3268896Sbapt "description": "a schema given for items", 4268896Sbapt "schema": { 5268896Sbapt "items": {"type": "integer"} 6268896Sbapt }, 7268896Sbapt "tests": [ 8268896Sbapt { 9268896Sbapt "description": "valid items", 10268896Sbapt "data": [ 1, 2, 3 ], 11268896Sbapt "valid": true 12268896Sbapt }, 13268896Sbapt { 14268896Sbapt "description": "wrong type of items", 15268896Sbapt "data": [1, "x"], 16268896Sbapt "valid": false 17268896Sbapt }, 18268896Sbapt { 19268896Sbapt "description": "ignores non-arrays", 20268896Sbapt "data": {"foo" : "bar"}, 21268896Sbapt "valid": true 22268896Sbapt } 23268896Sbapt ] 24268896Sbapt }, 25268896Sbapt { 26268896Sbapt "description": "an array of schemas for items", 27268896Sbapt "schema": { 28268896Sbapt "items": [ 29268896Sbapt {"type": "integer"}, 30268896Sbapt {"type": "string"} 31268896Sbapt ] 32268896Sbapt }, 33268896Sbapt "tests": [ 34268896Sbapt { 35268896Sbapt "description": "correct types", 36268896Sbapt "data": [ 1, "foo" ], 37268896Sbapt "valid": true 38268896Sbapt }, 39268896Sbapt { 40268896Sbapt "description": "wrong types", 41268896Sbapt "data": [ "foo", 1 ], 42268896Sbapt "valid": false 43268896Sbapt } 44268896Sbapt ] 45268896Sbapt } 46268896Sbapt] 47