File tree Expand file tree Collapse file tree 3 files changed +73
-7
lines changed Expand file tree Collapse file tree 3 files changed +73
-7
lines changed Original file line number Diff line number Diff line change 132132 ]
133133 },
134134 {
135- "description" : " unevaluatedProperties with adjacent additionalProperties" ,
135+ "description" : " unevaluatedProperties with adjacent bool additionalProperties" ,
136136 "schema" : {
137137 "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
138138 "type" : " object" ,
160160 }
161161 ]
162162 },
163+ {
164+ "description" : " unevaluatedProperties with adjacent non-bool additionalProperties" ,
165+ "schema" : {
166+ "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
167+ "type" : " object" ,
168+ "properties" : {
169+ "foo" : { "type" : " string" }
170+ },
171+ "additionalProperties" : {"type" : " string" },
172+ "unevaluatedProperties" : false
173+ },
174+ "tests" : [
175+ {
176+ "description" : " with no additional properties" ,
177+ "data" : {
178+ "foo" : " foo"
179+ },
180+ "valid" : true
181+ },
182+ {
183+ "description" : " with additional properties" ,
184+ "data" : {
185+ "foo" : " foo" ,
186+ "bar" : " bar"
187+ },
188+ "valid" : true
189+ }
190+ ]
191+ },
163192 {
164193 "description" : " unevaluatedProperties with nested properties" ,
165194 "schema" : {
Original file line number Diff line number Diff line change 130130 "description" : " unevaluatedProperties with adjacent bool additionalProperties" ,
131131 "schema" : {
132132 "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
133+ "type" : " object" ,
134+ "properties" : {
135+ "foo" : { "type" : " string" }
136+ },
133137 "additionalProperties" : true ,
134138 "unevaluatedProperties" : false
135139 },
155159 "description" : " unevaluatedProperties with adjacent non-bool additionalProperties" ,
156160 "schema" : {
157161 "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
158- "additionalProperties" : { "type" : " string" },
162+ "type" : " object" ,
163+ "properties" : {
164+ "foo" : { "type" : " string" }
165+ },
166+ "additionalProperties" : {"type" : " string" },
159167 "unevaluatedProperties" : false
160168 },
161169 "tests" : [
162170 {
163- "description" : " with only valid additional properties" ,
171+ "description" : " with no additional properties" ,
164172 "data" : {
165173 "foo" : " foo"
166174 },
167175 "valid" : true
168176 },
169177 {
170- "description" : " with invalid additional properties" ,
178+ "description" : " with additional properties" ,
171179 "data" : {
172180 "foo" : " foo" ,
173- "bar" : 1
181+ "bar" : " bar "
174182 },
175- "valid" : false
183+ "valid" : true
176184 }
177185 ]
178186 },
Original file line number Diff line number Diff line change 132132 ]
133133 },
134134 {
135- "description" : " unevaluatedProperties with adjacent additionalProperties" ,
135+ "description" : " unevaluatedProperties with adjacent bool additionalProperties" ,
136136 "schema" : {
137137 "$schema" : " https://json-schema.org/v1" ,
138138 "type" : " object" ,
160160 }
161161 ]
162162 },
163+ {
164+ "description" : " unevaluatedProperties with adjacent non-bool additionalProperties" ,
165+ "schema" : {
166+ "$schema" : " https://json-schema.org/v1" ,
167+ "type" : " object" ,
168+ "properties" : {
169+ "foo" : { "type" : " string" }
170+ },
171+ "additionalProperties" : {"type" : " string" },
172+ "unevaluatedProperties" : false
173+ },
174+ "tests" : [
175+ {
176+ "description" : " with no additional properties" ,
177+ "data" : {
178+ "foo" : " foo"
179+ },
180+ "valid" : true
181+ },
182+ {
183+ "description" : " with additional properties" ,
184+ "data" : {
185+ "foo" : " foo" ,
186+ "bar" : " bar"
187+ },
188+ "valid" : true
189+ }
190+ ]
191+ },
163192 {
164193 "description" : " unevaluatedProperties with nested properties" ,
165194 "schema" : {
You can’t perform that action at this time.
0 commit comments