diff options
| author | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-27 14:17:51 +0300 |
|---|---|---|
| committer | l3wdfut4pwr <l3wdfut4pwr@gmail.com> | 2026-04-27 14:17:51 +0300 |
| commit | cf6d551f7837878a198d1a988a9ba32f90473e3a (patch) | |
| tree | 1325a7f6b932bd35fa626590f8674ba1faf0af27 /app/schemas | |
| parent | 4848a9e9394b283022085a6305d00f94b11cd703 (diff) | |
add description change
Diffstat (limited to 'app/schemas')
| -rw-r--r-- | app/schemas/profile.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/schemas/profile.py b/app/schemas/profile.py index ab54425..1c62a97 100644 --- a/app/schemas/profile.py +++ b/app/schemas/profile.py @@ -1,6 +1,6 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import BaseModel, Field class ProfileRead(BaseModel): @@ -19,3 +19,7 @@ class ProfileRead(BaseModel): model_config = { "from_attributes": True, } + + +class DescriptionUpdate(BaseModel): + description: str = Field(max_length=250) |
