1. Validate an order payload
medium25 XPCreate Pydantic models LineItem(sku: str, qty: int >= 1, unit_cents: int >= 0) and Order(customer_id: str, items: list[LineItem]) where items must be non-empty and sku is upper-cased by a validator. Add a total_cents property on Order. Write parse_order(data: dict) -> Order | list[str] returning the model, or a list of error field paths like "items.0.qty" on failure.
Ctrl/⌘ + Enter runs the tests · Esc then Tab leaves the editor