fixed adding file problem
[c11concurrency-benchmarks.git] / gdax-orderbook-hpp / demo / dependencies / rapidjson-1.1.0 / bin / jsonschema / tests / draft4 / maxItems.json
diff --git a/gdax-orderbook-hpp/demo/dependencies/rapidjson-1.1.0/bin/jsonschema/tests/draft4/maxItems.json b/gdax-orderbook-hpp/demo/dependencies/rapidjson-1.1.0/bin/jsonschema/tests/draft4/maxItems.json
new file mode 100644 (file)
index 0000000..3b53a6b
--- /dev/null
@@ -0,0 +1,28 @@
+[
+    {
+        "description": "maxItems validation",
+        "schema": {"maxItems": 2},
+        "tests": [
+            {
+                "description": "shorter is valid",
+                "data": [1],
+                "valid": true
+            },
+            {
+                "description": "exact length is valid",
+                "data": [1, 2],
+                "valid": true
+            },
+            {
+                "description": "too long is invalid",
+                "data": [1, 2, 3],
+                "valid": false
+            },
+            {
+                "description": "ignores non-arrays",
+                "data": "foobar",
+                "valid": true
+            }
+        ]
+    }
+]