summaryrefslogtreecommitdiff
path: root/app/schemas/profile.py
diff options
context:
space:
mode:
authorl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-04-27 14:17:51 +0300
committerl3wdfut4pwr <l3wdfut4pwr@gmail.com>2026-04-27 14:17:51 +0300
commitcf6d551f7837878a198d1a988a9ba32f90473e3a (patch)
tree1325a7f6b932bd35fa626590f8674ba1faf0af27 /app/schemas/profile.py
parent4848a9e9394b283022085a6305d00f94b11cd703 (diff)
add description change
Diffstat (limited to 'app/schemas/profile.py')
-rw-r--r--app/schemas/profile.py6
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)