FULL STACK CITY

Level 2 · Guards checking everyone entering

The Gatehouse

Validation & errors. Playable now: read the briefing, practice in the browser, then clear the checkpoint.

The Bouncer

“Nobody gets in without the right papers.”

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.