File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 4646 "properties" : {
4747 "source" : {"type" : "string" },
4848 "fallback" : {
49+ "type" : ["object" , "string" , "null" ],
4950 "if" : {"not" : {"type" : "null" }},
5051 "then" : {"$ref" : "#/definitions/elementOrString" },
5152 },
5253 },
5354 "required" : ["source" ],
5455 },
5556 "elementOrString" : {
56- "if" : {"not" : {"type" : "string" }},
57+ "type" : ["object" , "string" ],
58+ "if" : {"type" : "object" },
5759 "then" : {"$ref" : "#/definitions/element" },
5860 },
5961 },
Original file line number Diff line number Diff line change @@ -235,8 +235,8 @@ def test_valid_vdom(value):
235235 r"data must be array" ,
236236 ),
237237 (
238- {"tagName" : "tag" , "children" : [0 ]},
239- r"data must be object" ,
238+ {"tagName" : "tag" , "children" : [None ]},
239+ r"data must be object or string " ,
240240 ),
241241 (
242242 {"tagName" : "tag" , "children" : [{"tagName" : None }]},
@@ -298,7 +298,7 @@ def test_valid_vdom(value):
298298 "tagName" : "tag" ,
299299 "importSource" : {"source" : "something" , "fallback" : 0 },
300300 },
301- r"data must be object" ,
301+ r"data\.fallback must be object or string or null " ,
302302 ),
303303 (
304304 {
You can’t perform that action at this time.
0 commit comments