Closed timolson closed 1 year ago
Thanks, at first sight it looks this may be related to #1058
Yes, agreed, it's likely the same issue.
If I remove the list and just have a dict of objects, it works.
Thanks for the report. Closing as a duplicate.
First, I love OmegaConf so far. It's almost perfect...
Describe the bug My config has a nested
dict[...,list[Child]]
structure, where nested elements have defaults, but the defaults are NOT being set.To Reproduce
Outputs:
{'children': {'items': [{'required': 'r'}]}}
Expected behavior The
ChildConfig
item should haveoptional=3
Notice that I used the wrong type for required, passing a string instead of an int. This suggests that the typing system is not recursing properly. Perhaps only one level of nesting is hardcoded?
Additional context