From bcf0c1aa48448304b8ba73f9d6991fd9a8ab510a Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Wed, 13 Nov 2024 12:47:38 +1300 Subject: [PATCH] clarify that `type` must be a non-empty array --- specs/jsonschema-validation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index c6d985ac..8579bdf1 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -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