From b3f4f14a470c77c902c39c0f430900b4d61defd7 Mon Sep 17 00:00:00 2001 From: "Henry H. Andrews" Date: Sun, 18 Sep 2022 14:53:03 -0700 Subject: [PATCH 1/2] Clarify prefixItems wording about array length --- jsonschema-core.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonschema-core.xml b/jsonschema-core.xml index 0181a388..9e07c7b6 100644 --- a/jsonschema-core.xml +++ b/jsonschema-core.xml @@ -2350,9 +2350,9 @@ Validation succeeds if each element of the instance validates against the schema at the same position, if any. This keyword - does not constrain the length of the array. If the array is longer - than this keyword's value, this keyword validates only the - prefix of matching length. + does not constrain the length of the array. Only array positions + present in both the keyword's value and the instance value are + affected by this keyword. This keyword produces an annotation value which is the largest From 169c5c29055675220b8375cba3cee284fb6db1e3 Mon Sep 17 00:00:00 2001 From: "Henry H. Andrews" Date: Sun, 18 Sep 2022 15:41:02 -0700 Subject: [PATCH 2/2] Fix schema->subschema in prefixItems description --- jsonschema-core.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonschema-core.xml b/jsonschema-core.xml index 9e07c7b6..f1ac7b7d 100644 --- a/jsonschema-core.xml +++ b/jsonschema-core.xml @@ -2349,7 +2349,7 @@ Validation succeeds if each element of the instance validates - against the schema at the same position, if any. This keyword + against the subschema at the same position, if any. This keyword does not constrain the length of the array. Only array positions present in both the keyword's value and the instance value are affected by this keyword.