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:
@@ -126,7 +126,7 @@ class AdminAccountDetailResponse(AdminAccountListItem):
|
|||||||
class AdminAccountCreate(BaseModel):
|
class AdminAccountCreate(BaseModel):
|
||||||
name: str = Field(..., min_length=1, max_length=255)
|
name: str = Field(..., min_length=1, max_length=255)
|
||||||
plan: Literal["free", "pro", "team"] = "free"
|
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):
|
class AdminAccountUpdate(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user