- ›_ cat src/api/orders.ts
- ›_ grep -n "createOrder" src
- ✎ Planning the validation
Claude Code asks permission · Edit src/api/orders.ts
+ if (!body.items.length) throw new Error("no items"); + for (const it of body.items) assertPositive(it.quantity);
Validation added. Tests pass.
Validation added. Tests pass.