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

A more comprehensive description of how the MetadataHandler works? #44

Open
DragosSpiridon opened this issue Nov 13, 2023 · 0 comments
Open

Comments

@DragosSpiridon
Copy link

I ran into some problems with the entity and field definitions, as I don't fully understand the recursive nature of list_entities. It says that setting has_nested_entities to True will make it recursive, but in what way exactly? Is list_entities called again but with a child of the main object? If so, how does it know to get a child depending on the object structure? Otherwise, what is called recursively?

The way I see it, it could be a list containing multiple dictionaries, or a dictionary containing dictionaries and lists, etc.
The structure I want to get defined is a list of dictionaries, each of which have the same keys. So I was thinking that I'd have one entity (the list), with children entities (the dictionaries), that each contain fields. How does one differentiate when to define an entity with children in this case, and when not to?

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