diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index 6c46ff51..6d169398 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -461,6 +461,10 @@ An object instance is valid against this keyword if its property set contains all elements in this keyword's array value. + + If this keyword is not present, it may be considered present + as an empty array. +
@@ -615,7 +619,7 @@
- + This keyword's value MUST be an array. This array MUST have at least one element. diff --git a/schema.json b/schema.json index 687b6438..601da7f4 100644 --- a/schema.json +++ b/schema.json @@ -32,7 +32,8 @@ "stringArray": { "type": "array", "items": { "type": "string" }, - "uniqueItems": true + "uniqueItems": true, + "defaultItems": [] } }, "type": ["object", "boolean"],