X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11concurrency-benchmarks.git;a=blobdiff_plain;f=gdax-orderbook-hpp%2Fdemo%2Fdependencies%2Frapidjson-1.1.0%2Fbin%2Fjsonschema%2Ftests%2Fdraft4%2Fitems.json;fp=gdax-orderbook-hpp%2Fdemo%2Fdependencies%2Frapidjson-1.1.0%2Fbin%2Fjsonschema%2Ftests%2Fdraft4%2Fitems.json;h=f5e18a13848f71f7f7056144d302bb178664982d;hp=0000000000000000000000000000000000000000;hb=4223430d9168223029c7639149025c79e69b4f37;hpb=7ea7751a31c0388bf888052517be181a2989b113 diff --git a/gdax-orderbook-hpp/demo/dependencies/rapidjson-1.1.0/bin/jsonschema/tests/draft4/items.json b/gdax-orderbook-hpp/demo/dependencies/rapidjson-1.1.0/bin/jsonschema/tests/draft4/items.json new file mode 100644 index 0000000..f5e18a1 --- /dev/null +++ b/gdax-orderbook-hpp/demo/dependencies/rapidjson-1.1.0/bin/jsonschema/tests/draft4/items.json @@ -0,0 +1,46 @@ +[ + { + "description": "a schema given for items", + "schema": { + "items": {"type": "integer"} + }, + "tests": [ + { + "description": "valid items", + "data": [ 1, 2, 3 ], + "valid": true + }, + { + "description": "wrong type of items", + "data": [1, "x"], + "valid": false + }, + { + "description": "ignores non-arrays", + "data": {"foo" : "bar"}, + "valid": true + } + ] + }, + { + "description": "an array of schemas for items", + "schema": { + "items": [ + {"type": "integer"}, + {"type": "string"} + ] + }, + "tests": [ + { + "description": "correct types", + "data": [ 1, "foo" ], + "valid": true + }, + { + "description": "wrong types", + "data": [ "foo", 1 ], + "valid": false + } + ] + } +]