Skip to content

Commit 6cb5d49

Browse files
committed
Minor fixes to prefixItems annotation examples
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent e12eb82 commit 6cb5d49

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

content/2020-12/applicator/prefixItems.markdown

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tests:
1313
- draft2020-12/prefixItems.json
1414
introduced_in: 2020-12
1515
annotation:
16-
description: The largest index to which this keyword applied its subschema, or a boolean true if it was applied to every item of the instance
16+
description: The largest inclusive index to which this keyword applied its subschema (starting from zero), or a boolean true if it was applied to every item of the instance
1717
kind: [ "number", "boolean" ]
1818
affects:
1919
- vocabulary: applicator
@@ -70,16 +70,12 @@ array.{{</common-pitfall>}}
7070
[]
7171
{{</instance-pass>}}
7272

73-
{{<instance-annotation>}}
74-
{ "keyword": "/prefixItems", "instance": "", "value": 0 }
75-
{{</instance-annotation>}}
76-
7773
{{<instance-pass `An array value that consists of a boolean item is valid`>}}
7874
[ false ]
7975
{{</instance-pass>}}
8076

8177
{{<instance-annotation>}}
82-
{ "keyword": "/prefixItems", "instance": "", "value": 1 }
78+
{ "keyword": "/prefixItems", "instance": "", "value": 0 }
8379
{{</instance-annotation>}}
8480

8581
{{<instance-pass `An array value that consists of a boolean item followed by a number item is valid`>}}
@@ -95,7 +91,7 @@ array.{{</common-pitfall>}}
9591
{{</instance-pass>}}
9692

9793
{{<instance-annotation>}}
98-
{ "keyword": "/prefixItems", "instance": "", "value": 2 }
94+
{ "keyword": "/prefixItems", "instance": "", "value": 1 }
9995
{{</instance-annotation>}}
10096

10197
{{<instance-fail `An array value that does not consist of a boolean item followed by a number item is invalid`>}}
@@ -118,16 +114,12 @@ array.{{</common-pitfall>}}
118114
[]
119115
{{</instance-pass>}}
120116

121-
{{<instance-annotation>}}
122-
{ "keyword": "/prefixItems", "instance": "", "value": 0 }
123-
{{</instance-annotation>}}
124-
125117
{{<instance-pass `An array value that consists of a boolean item is valid`>}}
126118
[ false ]
127119
{{</instance-pass>}}
128120

129121
{{<instance-annotation>}}
130-
{ "keyword": "/prefixItems", "instance": "", "value": 1 }
122+
{ "keyword": "/prefixItems", "instance": "", "value": 0 }
131123
{{</instance-annotation>}}
132124

133125
{{<instance-pass `An array value that consists of a boolean item followed by a number item is valid`>}}
@@ -143,7 +135,7 @@ array.{{</common-pitfall>}}
143135
{{</instance-pass>}}
144136

145137
{{<instance-annotation>}}
146-
{ "keyword": "/prefixItems", "instance": "", "value": 2 }
138+
{ "keyword": "/prefixItems", "instance": "", "value": 1 }
147139
{ "keyword": "/items", "instance": "", "value": true }
148140
{{</instance-annotation>}}
149141

0 commit comments

Comments
 (0)