File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 46
46
"properties" : {
47
47
"source" : {"type" : "string" },
48
48
"fallback" : {
49
+ "type" : ["object" , "string" , "null" ],
49
50
"if" : {"not" : {"type" : "null" }},
50
51
"then" : {"$ref" : "#/definitions/elementOrString" },
51
52
},
52
53
},
53
54
"required" : ["source" ],
54
55
},
55
56
"elementOrString" : {
56
- "if" : {"not" : {"type" : "string" }},
57
+ "type" : ["object" , "string" ],
58
+ "if" : {"type" : "object" },
57
59
"then" : {"$ref" : "#/definitions/element" },
58
60
},
59
61
},
Original file line number Diff line number Diff line change @@ -235,8 +235,8 @@ def test_valid_vdom(value):
235
235
r"data must be array" ,
236
236
),
237
237
(
238
- {"tagName" : "tag" , "children" : [0 ]},
239
- r"data must be object" ,
238
+ {"tagName" : "tag" , "children" : [None ]},
239
+ r"data must be object or string " ,
240
240
),
241
241
(
242
242
{"tagName" : "tag" , "children" : [{"tagName" : None }]},
@@ -298,7 +298,7 @@ def test_valid_vdom(value):
298
298
"tagName" : "tag" ,
299
299
"importSource" : {"source" : "something" , "fallback" : 0 },
300
300
},
301
- r"data must be object" ,
301
+ r"data\.fallback must be object or string or null " ,
302
302
),
303
303
(
304
304
{
You can’t perform that action at this time.
0 commit comments