From 19c3cc709b71abfa72912733a8d48c2b220b4b3e Mon Sep 17 00:00:00 2001
From: Alvaro Cabrera <pateketrueke@gmail.com>
Date: Wed, 26 Nov 2014 19:46:18 -0600
Subject: [PATCH] Array testing

---
 spec/core/types/arrays.json | 65 +++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 spec/core/types/arrays.json

diff --git a/spec/core/types/arrays.json b/spec/core/types/arrays.json
new file mode 100644
index 00000000..f624945e
--- /dev/null
+++ b/spec/core/types/arrays.json
@@ -0,0 +1,65 @@
+[
+  {
+    "description": "generated array values",
+    "schemas": [
+      {
+        "allOf": [
+          {
+            "type": "array",
+            "items": {
+              "type": "object",
+              "properties": {
+                "value": {
+                  "type": "string"
+                }
+              },
+              "required": ["value"]
+            }
+          },
+          {
+            "$ref": "some://rules"
+          }
+        ]
+      }
+    ],
+    "tests": [
+      {
+        "description": "should handle maxItems",
+        "schema": "schemas.0",
+        "refs": [
+          {
+            "id": "some://rules",
+            "maxItems": 3
+          }
+        ],
+        "valid": true
+      },
+      {
+        "description": "should handle minItems",
+        "schema": "schemas.0",
+        "refs": [
+          {
+            "id": "some://rules",
+            "maxItems": 3,
+            "minItems": 2
+          }
+        ],
+        "valid": true
+      },
+      {
+        "description": "should handle uniqueItems",
+        "schema": {
+          "type": "array",
+          "items": {
+            "type": "string",
+            "enum": ["a", "b", "c", "d", "e"]
+          },
+          "uniqueItems": true,
+          "maxItems": 3,
+          "minItems": 2
+        },
+        "valid": true
+      }
+    ]
+  }
+]
-- 
GitLab