Security defaults that belong in every FastAPI application from day one.
93
90%
Does it follow best practices?
Impact
98%
7.00xAverage score across 5 eval scenarios
Passed
No known issues
An online marketplace is building a FastAPI backend to handle product orders. Customers submit orders specifying the product, quantity, and preferred shipping speed (standard, express, or overnight). The team has had incidents where bad data reached the fulfillment system -- empty product names, impossible quantities, and shipping options that don't exist -- causing errors downstream.
The customer also provides their name and email address when placing an order.
Produce a single Python file named main.py that contains:
/orders route that accepts the order model and returns a confirmationThe file must be complete and importable Python. Stub return values are fine; no real database is needed.
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
skills
fastapi-security-basics
verifiers