01 · Before and afterThe pattern
const publicLink = z.object({ url: z.string(), key: z.string() });
// internal UI needs extra fields; declare them or zod silently drops them
const internalLink = publicLink.extend({ couponId: z.string().nullish() });
const body = internalLink.parse(await req.json()); // body.couponId now survives02 · Run it on your appThe check
For the last field you added to an endpoint, is there a test that sends it and asserts it was stored?
If the honest answer is no or not sure, this is worth a look before it reaches production.