Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b5afae7

Browse files
Merge pull request #112 from handrews/emptyreq
Allow an empty array for "required".
2 parents 4090d4c + d129ed4 commit b5afae7

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

‎jsonschema-validation.xml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,8 @@
435435

436436
<section title="required">
437437
<t>
438-
The value of this keyword MUST be an array. This array MUST have at
439-
least one element. Elements of this array MUST be strings, and MUST be
440-
unique.
438+
The value of this keyword MUST be an array. Elements of this array,
439+
if any, MUST be strings, and MUST be unique.
441440
</t>
442441
<t>
443442
An object instance is valid against this keyword if its
@@ -525,9 +524,9 @@
525524
against the entire instance.
526525
</t>
527526
<t>
528-
If the dependency value is an array, it MUST have at least one element, each
529-
element MUST be a string, and elements in the array MUST be unique. If the
530-
dependency key is a property in the instance, each of the items in the dependency
527+
If the dependency value is an array, each element in the array,
528+
if any, MUST be a string, and MUST be unique. If the dependency key is
529+
a property in the instance, each of the items in the dependency
531530
value must be a property that exists in the instance.
532531
</t>
533532
</section>

‎schema.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"stringArray": {
2222
"type": "array",
2323
"items": { "type": "string" },
24-
"minItems": 1,
2524
"uniqueItems": true
2625
}
2726
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /