From cf6d551f7837878a198d1a988a9ba32f90473e3a Mon Sep 17 00:00:00 2001 From: l3wdfut4pwr Date: Mon, 27 Apr 2026 14:17:51 +0300 Subject: add description change --- app/schemas/profile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/schemas/profile.py') 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) -- cgit v1.3-3-g829e