Skip to content

Commit 347d609

Browse files
committed
unevaluatedProperties: Remove type keywords
1 parent 7dfbb1e commit 347d609

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

tests/draft2020-12/unevaluatedProperties.json

-32
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"description": "unevaluatedProperties true",
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
6-
"type": "object",
76
"unevaluatedProperties": true
87
},
98
"tests": [
@@ -25,7 +24,6 @@
2524
"description": "unevaluatedProperties schema",
2625
"schema": {
2726
"$schema": "https://json-schema.org/draft/2020-12/schema",
28-
"type": "object",
2927
"unevaluatedProperties": {
3028
"type": "string",
3129
"minLength": 3
@@ -57,7 +55,6 @@
5755
"description": "unevaluatedProperties false",
5856
"schema": {
5957
"$schema": "https://json-schema.org/draft/2020-12/schema",
60-
"type": "object",
6158
"unevaluatedProperties": false
6259
},
6360
"tests": [
@@ -79,7 +76,6 @@
7976
"description": "unevaluatedProperties with adjacent properties",
8077
"schema": {
8178
"$schema": "https://json-schema.org/draft/2020-12/schema",
82-
"type": "object",
8379
"properties": {
8480
"foo": { "type": "string" }
8581
},
@@ -107,7 +103,6 @@
107103
"description": "unevaluatedProperties with adjacent patternProperties",
108104
"schema": {
109105
"$schema": "https://json-schema.org/draft/2020-12/schema",
110-
"type": "object",
111106
"patternProperties": {
112107
"^foo": { "type": "string" }
113108
},
@@ -135,7 +130,6 @@
135130
"description": "unevaluatedProperties with adjacent additionalProperties",
136131
"schema": {
137132
"$schema": "https://json-schema.org/draft/2020-12/schema",
138-
"type": "object",
139133
"properties": {
140134
"foo": { "type": "string" }
141135
},
@@ -189,7 +183,6 @@
189183
"description": "unevaluatedProperties with nested properties",
190184
"schema": {
191185
"$schema": "https://json-schema.org/draft/2020-12/schema",
192-
"type": "object",
193186
"properties": {
194187
"foo": { "type": "string" }
195188
},
@@ -226,7 +219,6 @@
226219
"description": "unevaluatedProperties with nested patternProperties",
227220
"schema": {
228221
"$schema": "https://json-schema.org/draft/2020-12/schema",
229-
"type": "object",
230222
"properties": {
231223
"foo": { "type": "string" }
232224
},
@@ -263,7 +255,6 @@
263255
"description": "unevaluatedProperties with nested additionalProperties",
264256
"schema": {
265257
"$schema": "https://json-schema.org/draft/2020-12/schema",
266-
"type": "object",
267258
"properties": {
268259
"foo": { "type": "string" }
269260
},
@@ -296,7 +287,6 @@
296287
"description": "unevaluatedProperties with nested unevaluatedProperties",
297288
"schema": {
298289
"$schema": "https://json-schema.org/draft/2020-12/schema",
299-
"type": "object",
300290
"properties": {
301291
"foo": { "type": "string" }
302292
},
@@ -332,7 +322,6 @@
332322
"description": "unevaluatedProperties with anyOf",
333323
"schema": {
334324
"$schema": "https://json-schema.org/draft/2020-12/schema",
335-
"type": "object",
336325
"properties": {
337326
"foo": { "type": "string" }
338327
},
@@ -401,7 +390,6 @@
401390
"description": "unevaluatedProperties with oneOf",
402391
"schema": {
403392
"$schema": "https://json-schema.org/draft/2020-12/schema",
404-
"type": "object",
405393
"properties": {
406394
"foo": { "type": "string" }
407395
},
@@ -445,7 +433,6 @@
445433
"description": "unevaluatedProperties with not",
446434
"schema": {
447435
"$schema": "https://json-schema.org/draft/2020-12/schema",
448-
"type": "object",
449436
"properties": {
450437
"foo": { "type": "string" }
451438
},
@@ -474,7 +461,6 @@
474461
"description": "unevaluatedProperties with if/then/else",
475462
"schema": {
476463
"$schema": "https://json-schema.org/draft/2020-12/schema",
477-
"type": "object",
478464
"if": {
479465
"properties": {
480466
"foo": { "const": "then" }
@@ -534,7 +520,6 @@
534520
"description": "unevaluatedProperties with if/then/else, then not defined",
535521
"schema": {
536522
"$schema": "https://json-schema.org/draft/2020-12/schema",
537-
"type": "object",
538523
"if": {
539524
"properties": {
540525
"foo": { "const": "then" }
@@ -588,7 +573,6 @@
588573
"description": "unevaluatedProperties with if/then/else, else not defined",
589574
"schema": {
590575
"$schema": "https://json-schema.org/draft/2020-12/schema",
591-
"type": "object",
592576
"if": {
593577
"properties": {
594578
"foo": { "const": "then" }
@@ -642,7 +626,6 @@
642626
"description": "unevaluatedProperties with dependentSchemas",
643627
"schema": {
644628
"$schema": "https://json-schema.org/draft/2020-12/schema",
645-
"type": "object",
646629
"properties": {
647630
"foo": { "type": "string" }
648631
},
@@ -678,7 +661,6 @@
678661
"description": "unevaluatedProperties with boolean schemas",
679662
"schema": {
680663
"$schema": "https://json-schema.org/draft/2020-12/schema",
681-
"type": "object",
682664
"properties": {
683665
"foo": { "type": "string" }
684666
},
@@ -706,7 +688,6 @@
706688
"description": "unevaluatedProperties with $ref",
707689
"schema": {
708690
"$schema": "https://json-schema.org/draft/2020-12/schema",
709-
"type": "object",
710691
"$ref": "#/$defs/bar",
711692
"properties": {
712693
"foo": { "type": "string" }
@@ -744,7 +725,6 @@
744725
"description": "unevaluatedProperties before $ref",
745726
"schema": {
746727
"$schema": "https://json-schema.org/draft/2020-12/schema",
747-
"type": "object",
748728
"unevaluatedProperties": false,
749729
"properties": {
750730
"foo": { "type": "string" }
@@ -798,7 +778,6 @@
798778

799779
"$comment": "unevaluatedProperties comes first so it's more likely to catch bugs with implementations that are sensitive to keyword ordering",
800780
"unevaluatedProperties": false,
801-
"type": "object",
802781
"properties": {
803782
"foo": { "type": "string" }
804783
},
@@ -887,7 +866,6 @@
887866
"description": "nested unevaluatedProperties, outer false, inner true, properties outside",
888867
"schema": {
889868
"$schema": "https://json-schema.org/draft/2020-12/schema",
890-
"type": "object",
891869
"properties": {
892870
"foo": { "type": "string" }
893871
},
@@ -920,7 +898,6 @@
920898
"description": "nested unevaluatedProperties, outer false, inner true, properties inside",
921899
"schema": {
922900
"$schema": "https://json-schema.org/draft/2020-12/schema",
923-
"type": "object",
924901
"allOf": [
925902
{
926903
"properties": {
@@ -953,7 +930,6 @@
953930
"description": "nested unevaluatedProperties, outer true, inner false, properties outside",
954931
"schema": {
955932
"$schema": "https://json-schema.org/draft/2020-12/schema",
956-
"type": "object",
957933
"properties": {
958934
"foo": { "type": "string" }
959935
},
@@ -986,7 +962,6 @@
986962
"description": "nested unevaluatedProperties, outer true, inner false, properties inside",
987963
"schema": {
988964
"$schema": "https://json-schema.org/draft/2020-12/schema",
989-
"type": "object",
990965
"allOf": [
991966
{
992967
"properties": {
@@ -1019,7 +994,6 @@
1019994
"description": "cousin unevaluatedProperties, true and false, true with properties",
1020995
"schema": {
1021996
"$schema": "https://json-schema.org/draft/2020-12/schema",
1022-
"type": "object",
1023997
"allOf": [
1024998
{
1025999
"properties": {
@@ -1054,7 +1028,6 @@
10541028
"description": "cousin unevaluatedProperties, true and false, false with properties",
10551029
"schema": {
10561030
"$schema": "https://json-schema.org/draft/2020-12/schema",
1057-
"type": "object",
10581031
"allOf": [
10591032
{
10601033
"unevaluatedProperties": true
@@ -1090,10 +1063,8 @@
10901063
"comment": "see https://stackoverflow.com/questions/66936884/deeply-nested-unevaluatedproperties-and-their-expectations",
10911064
"schema": {
10921065
"$schema": "https://json-schema.org/draft/2020-12/schema",
1093-
"type": "object",
10941066
"properties": {
10951067
"foo": {
1096-
"type": "object",
10971068
"properties": {
10981069
"bar": {
10991070
"type": "string"
@@ -1142,7 +1113,6 @@
11421113
"description": "in-place applicator siblings, allOf has unevaluated",
11431114
"schema": {
11441115
"$schema": "https://json-schema.org/draft/2020-12/schema",
1145-
"type": "object",
11461116
"allOf": [
11471117
{
11481118
"properties": {
@@ -1188,7 +1158,6 @@
11881158
"description": "in-place applicator siblings, anyOf has unevaluated",
11891159
"schema": {
11901160
"$schema": "https://json-schema.org/draft/2020-12/schema",
1191-
"type": "object",
11921161
"allOf": [
11931162
{
11941163
"properties": {
@@ -1234,7 +1203,6 @@
12341203
"description": "unevaluatedProperties + single cyclic ref",
12351204
"schema": {
12361205
"$schema": "https://json-schema.org/draft/2020-12/schema",
1237-
"type": "object",
12381206
"properties": {
12391207
"x": { "$ref": "#" }
12401208
},

0 commit comments

Comments
 (0)