Skip to main content
← Back to list
01Issue
BugShippedExtensionsPublic
AssigneesNone

Relationships

↔ sibling #4436

#4428 Cloudflare codegen: a self-referencing request body overflows the stack in normalizeProperty

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

codegen/cloudflare/pipeline.ts normalizeProperty recurses into object properties and array items with no cycle guard. The fetched spec is dereferenced (226 circular refs), so a request body whose properties refer back to an ancestor makes generation fail with RangeError: Maximum call stack size exceeded. Reproduced on main with a minimal spec: a POST body {type: object, properties: {name, child: }} passed to parseResources. Today's Cloudflare spec does not hit this (full generation succeeds), so it is latent. Expected: normalizeProperty stops at a node already on the current path (emit z.unknown() or a z.lazy reference) instead of overflowing. Found while verifying swamp-club#4419, whose allOf merge (conjoinProperty) is now guarded but cannot make such a body generate end to end until this is fixed.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPEDLINKED+ 6 MOREPR_MERGED+ 1 MORESESSION_SUMMARIZED

Shipped

11/8/2026, 2:15:12 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 linked sibling of #443611/8/2026, 1:12:12 AM

Sign in to post a ripple.