fix(admin): use EmailStr for owner_email validation in AdminAccountCreate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
chihlasm
2026-04-14 21:25:03 +00:00
parent 0ed5977fee
commit 4037a5213e

View File

@@ -126,7 +126,7 @@ class AdminAccountDetailResponse(AdminAccountListItem):
class AdminAccountCreate(BaseModel):
name: str = Field(..., min_length=1, max_length=255)
plan: Literal["free", "pro", "team"] = "free"
owner_email: Optional[str] = Field(None, description="Email of an existing user to set as owner")
owner_email: Optional[EmailStr] = Field(None, description="Email of an existing user to set as owner")
class AdminAccountUpdate(BaseModel):