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 c6a845b

Browse files
Merge pull request #1560 from json-schema-org/gregsdennis/clarify-type-array
clarify that `type` must be a non-empty array
2 parents 8aeac94 + bcf0c1a commit c6a845b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎specs/jsonschema-validation.md‎

Lines changed: 2 additions & 1 deletion
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)

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