Skip to content

Commit bcf0c1a

Browse files
committed
clarify that type must be a non-empty array
1 parent 0a98ed7 commit bcf0c1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

specs/jsonschema-validation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ an instance. These keywords are all assertions without any annotation behavior.
108108
#### `type`
109109

110110
The value of this keyword MUST be either a string or an array. If it is an
111-
array, elements of the array MUST be strings and MUST be unique.
111+
array, it MUST be non-empty, and elements of the array MUST be strings and MUST
112+
be unique.
112113

113114
String values MUST be one of the six primitive types ("null", "boolean",
114115
"object", "array", "number", or "string"), or "integer" which matches any number

0 commit comments

Comments
 (0)