Permalink
Browse files

Merge pull request #190 from handrews/stringarray

String arrays default to empty.
  • Loading branch information...
2 parents 6e5563d + bc536c2 commit 965426ac072bc6ccab70f74eb956b549bcc9f937 @Relequestual Relequestual committed on GitHub Jan 5, 2017
Showing with 7 additions and 2 deletions.
  1. +5 −1 jsonschema-validation.xml
  2. +2 −1 schema.json
@@ -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.
</t>
+ <t>
+ If this keyword is not present, it may be considered present
+ as an empty array.
+ </t>
</section>
<section title="properties">
@@ -615,7 +619,7 @@
</section>
<section title="anyOf">
- <t>
+ <t>
This keyword's value MUST be an array. This array MUST have at least one
element.
</t>
View
@@ -32,7 +32,8 @@
"stringArray": {
"type": "array",
"items": { "type": "string" },
- "uniqueItems": true
+ "uniqueItems": true,
+ "defaultItems": []
}
},
"type": ["object", "boolean"],

0 comments on commit 965426a

Please sign in to comment.