Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow an empty array for "required". #112

Merged
merged 1 commit into from
Nov 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions jsonschema-validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,8 @@

<section title="required">
<t>
The value of this keyword MUST be an array. This array MUST have at
least one element. Elements of this array MUST be strings, and MUST be
unique.
The value of this keyword MUST be an array. Elements of this array,
if any, MUST be strings, and MUST be unique.
</t>
<t>
An object instance is valid against this keyword if its
Expand Down Expand Up @@ -525,9 +524,9 @@
against the entire instance.
</t>
<t>
If the dependency value is an array, it MUST have at least one element, each
element MUST be a string, and elements in the array MUST be unique. If the
dependency key is a property in the instance, each of the items in the dependency
If the dependency value is an array, each element in the array,
if any, MUST be a string, and MUST be unique. If the dependency key is
a property in the instance, each of the items in the dependency
value must be a property that exists in the instance.
</t>
</section>
Expand Down
1 change: 0 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"stringArray": {
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"uniqueItems": true
}
},
Expand Down