Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info stops schema descent on "traversable" node #1892

Open
braingram opened this issue Dec 24, 2024 · 0 comments
Open

info stops schema descent on "traversable" node #1892

braingram opened this issue Dec 24, 2024 · 0 comments

Comments

@braingram
Copy link
Contributor

Description of the problem

_node_info collection stops descending into a schema if the node is "traversable" (has __asdf_traverse__).

asdf/asdf/_node_info.py

Lines 276 to 277 in a866c98

if parent.schema is not None and not cls.traversable(node):
info.set_schema_for_property(parent, identifier)

even if the parent has a non-None schema. This seems incorrect as a node with __asdf_traverse__ may have a valid subschema.

Example of the problem

None yet...

System information

asdf version:
python version:
operating system:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant