Skip to content

Commit

Permalink
Merge pull request #1560 from json-schema-org/gregsdennis/clarify-typ…
Browse files Browse the repository at this point in the history
…e-array

clarify that `type` must be a non-empty array
  • Loading branch information
gregsdennis authored Nov 28, 2024
2 parents 8aeac94 + bcf0c1a commit c6a845b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs/jsonschema-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ an instance. These keywords are all assertions without any annotation behavior.
#### `type`

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

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

0 comments on commit c6a845b

Please sign in to comment.