Skip to content

Commit 42f2a31

Browse files
committed
Also allow empty "dependencies" array.
Same rationale as for empty "requirements."
1 parent ac8e207 commit 42f2a31

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

jsonschema-validation.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,9 @@
524524
against the entire instance.
525525
</t>
526526
<t>
527-
If the dependency value is an array, it MUST have at least one element, each
528-
element MUST be a string, and elements in the array MUST be unique. If the
529-
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 MUST be a string,
528+
and elements in the array MUST be unique. If the dependency key is
529+
a property in the instance, each of the items in the dependency
530530
value must be a property that exists in the instance.
531531
</t>
532532
</section>

schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"type": "array",
2323
"items": { "type": "string" },
2424
"uniqueItems": true
25-
},
26-
"nonEmptyStringArray": {
27-
"allOf": [ { "$ref": "#/definitions/stringArray" }, { "minItems": 1 } ]
2825
}
2926
},
3027
"type": "object",
@@ -120,7 +117,7 @@
120117
"additionalProperties": {
121118
"anyOf": [
122119
{ "$ref": "#" },
123-
{ "$ref": "#/definitions/nonEmptyStringArray" }
120+
{ "$ref": "#/definitions/stringArray" }
124121
]
125122
}
126123
},

0 commit comments

Comments
 (0)