Skip to content

Commit

Permalink
Merge pull request #190 from handrews/stringarray
Browse files Browse the repository at this point in the history
String arrays default to empty.
  • Loading branch information
Relequestual authored Jan 5, 2017
2 parents 6e5563d + bc536c2 commit 965426a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jsonschema-validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"stringArray": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
"uniqueItems": true,
"defaultItems": []
}
},
"type": ["object", "boolean"],
Expand Down

0 comments on commit 965426a

Please sign in to comment.