File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -401,14 +401,11 @@ def from_root_node(
401
401
if root_info is None :
402
402
root_info = info
403
403
404
+ if parent is None :
405
+ info .schema = schema
406
+
404
407
if parent is not None :
405
- # Why check that __asdf_traverse__ doesn't exist here?
406
- # If the parent has a schema and the identifier is in
407
- # the schema we have a valid subschema for this node.
408
- # Why does it matter if it does or doesn't support
409
- # __asdf_traverse__ (as that only determines the
410
- # children).
411
- if parent .schema is not None and not traversable :
408
+ if parent .schema is not None :
412
409
# descend within the schema of the parent
413
410
info .set_schema_for_property (parent , identifier )
414
411
@@ -433,9 +430,6 @@ def from_root_node(
433
430
# be using _tag for a non-ASDF purpose.
434
431
pass
435
432
436
- if parent is None :
437
- info .schema = schema
438
-
439
433
# add children to queue
440
434
for child_identifier , child_node in get_children (t_node ):
441
435
next_nodes .append ((info , child_identifier , child_node ))
You can’t perform that action at this time.
0 commit comments