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 V2 Configuration Warning with FastAPI Users + SQLModel
Describe the bug
Pydantic V2 configuration warning appears when using FastAPI Users with SQLModel: UserWarning: Valid config keys have changed in V2: 'orm_mode' has been renamed to 'from_attributes'
To Reproduce
Steps to reproduce the behavior:
Create a FastAPI application using SQLModel and FastAPI Users
Import the fastapi_users_db_sqlmodel module
Run the application
Warning appears in console output from pydantic internal config
Expected behavior
No warnings should appear when using FastAPI Users with SQLModel, as the configuration should be compatible with Pydantic V2.
Pydantic V2 Configuration Warning with FastAPI Users + SQLModel
Describe the bug
Pydantic V2 configuration warning appears when using FastAPI Users with SQLModel:
UserWarning: Valid config keys have changed in V2: 'orm_mode' has been renamed to 'from_attributes'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No warnings should appear when using FastAPI Users with SQLModel, as the configuration should be compatible with Pydantic V2.
Configuration
FastAPI Users configuration
Additional context
The text was updated successfully, but these errors were encountered: