feat: Увеличить максимальную длину имени пользователя до 36 символов в CreateUserRequestDto

This commit is contained in:
Artem 2025-05-19 17:54:19 +02:00
parent 2cbc9f1c1e
commit ccdaf96510
No known key found for this signature in database
GPG key ID: 833485276B7902CE

View file

@ -28,7 +28,7 @@ class HappCrypto(BaseModel):
class CreateUserRequestDto(BaseModel):
username: Annotated[
str, StringConstraints(pattern=r"^[a-zA-Z0-9_-]+$", min_length=6, max_length=34)
str, StringConstraints(pattern=r"^[a-zA-Z0-9_-]+$", min_length=6, max_length=36)
]
status: Optional[UserStatus] = None
subscription_uuid: Optional[str] = Field(