Small fixes

This commit is contained in:
2024-05-18 20:30:41 +04:00
parent f768e3bc4c
commit a7719d5f51
2 changed files with 7 additions and 3 deletions

View File

@@ -12,8 +12,11 @@ class UserCreate(UserBase):
password: str = Field(examples=["password"])
class User(UserBase):
class UserOpenData(UserBase):
id: int = Field(examples=[1])
class User(UserOpenData):
hash_of_password: str = Field(examples=["hash_of_password"])
model_config = ConfigDict(from_attributes=True)