Validate what comes through the gate
Describe a request with a Pydantic model, add limits with Field(), and bounce bad data with 422.
- Briefing, about 5 minutes with quick checks · read it as a guide
- Ticket Booth (practice): Number limits: only sensible ticket orders get through.
- Badge Check (practice): Text limits: badge codes and names of the right length.
- Guard the Signup Gate (checkpoint): Numbers and text together, with hidden requests at every boundary.