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
ValidationError: 1 validation error for Foo
foo
Input should be a valid dictionary or object to extract fields from [type=model_attributes_type, input_value='{"type": "bar", "bar": 42}', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/model_attributes_type
Declaring BarOrBaz without the PEP-695 style type alias (i.e. leaving out the type keyword) works as expected - validation succeeds.
With the following Pydantic settings model
and the env
Pydantic Settings fails to deserialize FOO:
Foo()
Declaring BarOrBaz without the PEP-695 style type alias (i.e. leaving out the
type
keyword) works as expected - validation succeeds.Version Info
The text was updated successfully, but these errors were encountered: