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

Relationships

#3648 codegen/vercel: union (oneOf) read responses produce id-only ResourceSchemas

Opened by skunk-ape · 10/19/2026· Shipped 10/19/2026

Problem

extractResponseProperties in codegen/vercel/pipeline.ts reads schema.properties from the GET response and never flattens a oneOf or anyOf response. A resource whose read response is a union gets an id-only ResourceSchema (z.object({ id }).passthrough()).

@swamp/vercel/projects/env is one: GET /v1/projects/{idOrName}/env/{id} returns a three-branch oneOf, so none of its fields (key, target, type, value, …) are typed in stored state. flattenDisjunction already exists for request bodies.

Why it matters

Found while fixing swamp-club#3571, which had to declare projects/env's stored value explicitly to mark it sensitive. Untyped stored state also hides other fields from lookup filters and from swamp model type describe.

Expected

Flatten union responses the way request bodies are flattened, then review the regenerated diff across every Vercel resource it affects.

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

Shipped

10/19/2026, 11:45:40 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack7210/19/2026, 11:13:24 PM

Sign in to post a ripple.