Skip to content

Commit bd653f3

Browse files
committed
fixed findings by julian
1 parent eab34ba commit bd653f3

29 files changed

+57
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ If you suspect one, please [file an issue](https://github.com/json-schema-org/JS
165165
{
166166
"description": "Invalid: null",
167167
"data": {
168-
"type": "null"
168+
"type": null
169169
},
170170
"valid": false
171171
}

tests/draft-next/contains.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,5 +237,20 @@
237237
"valid": false
238238
}
239239
]
240+
},
241+
{
242+
"description": "contains should properly handle null data",
243+
"schema": {
244+
"contains": {
245+
"type": "null"
246+
}
247+
},
248+
"tests": [
249+
{
250+
"description": "null items allowed",
251+
"data": [ null ],
252+
"valid": true
253+
}
254+
]
240255
}
241256
]

tests/draft-next/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
},
263263
"tests": [
264264
{
265-
"description": "null properties allowed",
265+
"description": "null items allowed",
266266
"data": [ null ],
267267
"valid": true
268268
}

tests/draft-next/prefixItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
},
9090
"tests": [
9191
{
92-
"description": "null properties allowed",
92+
"description": "null items allowed",
9393
"data": [ null ],
9494
"valid": true
9595
}

tests/draft-next/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"description": "properties should properly handle null data",
169169
"schema": {
170170
"properties": {
171-
"foo$": {"type": "null"}
171+
"foo": {"type": "null"}
172172
}
173173
},
174174
"tests": [

tests/draft-next/unevaluatedItems.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,5 +625,20 @@
625625
"valid": true
626626
}
627627
]
628+
},
629+
{
630+
"description": "unevaluatedItems should properly handle null data",
631+
"schema": {
632+
"unevaluatedItems": {
633+
"type": "null"
634+
}
635+
},
636+
"tests": [
637+
{
638+
"description": "null items allowed",
639+
"data": [ null ],
640+
"valid": true
641+
}
642+
]
628643
}
629644
]

tests/draft2019-09/additionalItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
"tests": [
157157
{
158-
"description": "null properties allowed",
158+
"description": "null items allowed",
159159
"data": [ null ],
160160
"valid": true
161161
}

tests/draft2019-09/contains.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
},
157157
"tests": [
158158
{
159-
"description": "null properties allowed",
159+
"description": "null items allowed",
160160
"data": [ null ],
161161
"valid": true
162162
}

tests/draft2019-09/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
},
274274
"tests": [
275275
{
276-
"description": "null properties allowed",
276+
"description": "null items allowed",
277277
"data": [ null ],
278278
"valid": true
279279
}

tests/draft2019-09/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"description": "properties should properly handle null data",
169169
"schema": {
170170
"properties": {
171-
"foo$": {"type": "null"}
171+
"foo": {"type": "null"}
172172
}
173173
},
174174
"tests": [

tests/draft2019-09/unevaluatedItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@
525525
},
526526
"tests": [
527527
{
528-
"description": "null properties allowed",
528+
"description": "null items allowed",
529529
"data": [ null ],
530530
"valid": true
531531
}

tests/draft2020-12/contains.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
},
157157
"tests": [
158158
{
159-
"description": "null properties allowed",
159+
"description": "null items allowed",
160160
"data": [ null ],
161161
"valid": true
162162
}

tests/draft2020-12/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
},
263263
"tests": [
264264
{
265-
"description": "null properties allowed",
265+
"description": "null items allowed",
266266
"data": [ null ],
267267
"valid": true
268268
}

tests/draft2020-12/prefixItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
},
9090
"tests": [
9191
{
92-
"description": "null properties allowed",
92+
"description": "null items allowed",
9393
"data": [ null ],
9494
"valid": true
9595
}

tests/draft2020-12/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"description": "properties should properly handle null data",
169169
"schema": {
170170
"properties": {
171-
"foo$": {"type": "null"}
171+
"foo": {"type": "null"}
172172
}
173173
},
174174
"tests": [

tests/draft2020-12/unevaluatedItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
},
636636
"tests": [
637637
{
638-
"description": "null properties allowed",
638+
"description": "null items allowed",
639639
"data": [ null ],
640640
"valid": true
641641
}

tests/draft3/additionalItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
},
120120
"tests": [
121121
{
122-
"description": "null properties allowed",
122+
"description": "null items allowed",
123123
"data": [ null ],
124124
"valid": true
125125
}

tests/draft3/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
"tests": [
7171
{
72-
"description": "null properties allowed",
72+
"description": "null items allowed",
7373
"data": [ null ],
7474
"valid": true
7575
}

tests/draft3/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"description": "properties should properly handle null data",
9999
"schema": {
100100
"properties": {
101-
"foo$": {"type": "null"}
101+
"foo": {"type": "null"}
102102
}
103103
},
104104
"tests": [

tests/draft4/additionalItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
"tests": [
157157
{
158-
"description": "null properties allowed",
158+
"description": "null items allowed",
159159
"data": [ null ],
160160
"valid": true
161161
}

tests/draft4/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@
218218
},
219219
"tests": [
220220
{
221-
"description": "null properties allowed",
221+
"description": "null items allowed",
222222
"data": [ null ],
223223
"valid": true
224224
}

tests/draft4/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"description": "properties should properly handle null data",
138138
"schema": {
139139
"properties": {
140-
"foo$": {"type": "null"}
140+
"foo": {"type": "null"}
141141
}
142142
},
143143
"tests": [

tests/draft6/additionalItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
"tests": [
157157
{
158-
"description": "null properties allowed",
158+
"description": "null items allowed",
159159
"data": [ null ],
160160
"valid": true
161161
}

tests/draft6/contains.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
},
136136
"tests": [
137137
{
138-
"description": "null properties allowed",
138+
"description": "null items allowed",
139139
"data": [ null ],
140140
"valid": true
141141
}

tests/draft6/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
},
274274
"tests": [
275275
{
276-
"description": "null properties allowed",
276+
"description": "null items allowed",
277277
"data": [ null ],
278278
"valid": true
279279
}

tests/draft6/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"description": "properties should properly handle null data",
169169
"schema": {
170170
"properties": {
171-
"foo$": {"type": "null"}
171+
"foo": {"type": "null"}
172172
}
173173
},
174174
"tests": [

tests/draft7/additionalItems.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
"tests": [
157157
{
158-
"description": "null properties allowed",
158+
"description": "null items allowed",
159159
"data": [ null ],
160160
"valid": true
161161
}

tests/draft7/items.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
},
274274
"tests": [
275275
{
276-
"description": "null properties allowed",
276+
"description": "null items allowed",
277277
"data": [ null ],
278278
"valid": true
279279
}

tests/draft7/properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"description": "properties should properly handle null data",
169169
"schema": {
170170
"properties": {
171-
"foo$": {"type": "null"}
171+
"foo": {"type": "null"}
172172
}
173173
},
174174
"tests": [

0 commit comments

Comments
 (0)