You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pydantic_core._pydantic_core.ValidationError: 2 validation errors for Settings
nested__a
Extra inputs are not permitted [type=extra_forbidden, input_value='fails', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
nested__b
Extra inputs are not permitted [type=extra_forbidden, input_value='2', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/extra_forbidden
setting extra="allow" ends up with duplicate NESTED and nested__* fields on the model:
As of
v2.5.0
, the following code fails:result:
setting
extra="allow"
ends up with duplicate NESTED and nested__* fields on the model:removing
| None
fromNESTED: NestedSettings
works as expected whenforbid
is bothTrue
orFalse
:Using Python 3.12 on Windows 11. This worked as expected in
2.4.0
The text was updated successfully, but these errors were encountered: