[BUG] updating/setting a nested parameter inside another does not understand alias
and stores "new" attribute.
#369
Labels
alias
and stores "new" attribute.
#369
Bug description
Basically, the only moment where the
alias
seems to be properly managed is for theDocument
. The attributes of nested pydantic models cannot be declared through the attribute name.It is also important to consider that linters will be unable to understand the alias, but they do understand the attribute.
Bug reproduction
Expected behaviour
As the
alias
is respected for the mainDocument
, it is expected that the same happens for nested objects. But this does not happen.Hopefully this can get fixed. Thank you!
The text was updated successfully, but these errors were encountered: