Initial commit: waitlist microservice
This commit is contained in:
12
app/schemas.py
Normal file
12
app/schemas.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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!"
|
||||
Reference in New Issue
Block a user