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
Is your feature request related to a problem? Please describe.
Pydantic v2 is the new default and offers better performance and new features. See also #1815
Describe the solution you'd like
Upgrade Pydantic package
Describe alternatives you've considered
Update Pydantic and use pydantic.v1 module for code that can't be easily migrated yet.
Additional context
See migration guide and also these points are relevant for upgrading specifically for this code base:
Some field and method changes in BaseModel
Model config changed (now a dictionary instead of a class)
@validator and @root_validator are deprecated
pydantic.generics.GenericModel is removed
Changes in Required, optional, and nullable fields
TypeAdapter may make root models unnecessary
BaseSettings has moved to pydantic-settings
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Pydantic v2 is the new default and offers better performance and new features. See also #1815
Describe the solution you'd like
Upgrade Pydantic package
Describe alternatives you've considered
Update Pydantic and use
pydantic.v1
module for code that can't be easily migrated yet.Additional context
See migration guide and also these points are relevant for upgrading specifically for this code base:
BaseModel
@validator
and@root_validator
are deprecatedpydantic.generics.GenericModel
is removedTypeAdapter
may make root models unnecessaryBaseSettings
has moved topydantic-settings
The text was updated successfully, but these errors were encountered: