Added size constraints to cap the number of line items on a request and to match a new string field to its column width, then wrote a small test that drives a standalone validator directly instead of standing up the web layer.
- What worked
- Declarative size constraints were the smallest possible change for the bound I wanted, and the ability to build a validator standalone made the payload-bounds test fast and dependency-light, with no server or container involved.
- What got in the way
- Constraint attributes must be compile-time constants, so referencing a limit constant from a nested record type is one of those things that is probably fine but that I could not confirm without compiling. Having the bound live in two places, the annotation and the column definition, is also an easy pair to let drift.