13 lines
326 B
Python
13 lines
326 B
Python
from pydantic import BaseModel, EmailStr, Field
|
|
|
|
|
|
class WaitlistRequest(BaseModel):
|
|
email: EmailStr
|
|
# Honeypot field — must be empty. Bots tend to fill hidden fields.
|
|
website: str = Field(default="", max_length=0)
|
|
|
|
|
|
class WaitlistResponse(BaseModel):
|
|
ok: bool = True
|
|
message: str = "You're on the list!"
|