fix: userschema config
Required for Pydantic to map a SQLAlchemy model to it.
This commit is contained in:
parent
2f4b7b8733
commit
3052565258
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ from user.schemas import UserIDMixin
|
||||||
|
|
||||||
|
|
||||||
class UserSchema(CustomBaseModel):
|
class UserSchema(CustomBaseModel):
|
||||||
|
model_config = ConfigDict(from_attributes=True, extra="ignore")
|
||||||
|
|
||||||
id: int
|
id: int
|
||||||
first_name: str
|
first_name: str
|
||||||
last_name: str
|
last_name: str
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue