Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneeszack

Relationships

#4426 Cloudflare codegen: disjunction branches that disagree on a scalar property type keep only the first branch's type

Opened by zack · 11/5/2026· Shipped 11/5/2026

codegen/cloudflare/pipeline.ts flattenDisjunction merges anyOf/oneOf branch properties first-wins (only enum-vs-enum collisions are merged). swamp-club#4419 fixes this for object-valued properties. Scalar and mixed-type collisions remain: across a full Cloudflare regeneration, a property named value is string in one branch and integer, object, array or a union in others (rules / page-rules style request bodies), and durable_objects is a union in one branch and an object in another. The generated schema accepts only the first branch's type, so valid payloads for the other branches fail validation client-side. Expected: conflicting scalar types become a zod union of the distinct types. Found while planning swamp-club#4419; out of scope there.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 16 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

11/5/2026, 8:08:32 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/5/2026, 2:30:15 PM

Sign in to post a ripple.