• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RobinTail / express-zod-api / 31025711493
100%

Build:
DEFAULT BRANCH: master
Ran 05 Aug 2026 04:33PM UTC
Jobs 6
Files 50
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Aug 2026 04:31PM UTC coverage: 100.0%. Remained the same
31025711493

push

github

web-flow
fix: key request body components by depicted body schema (#3603)

Fixes #3601.

## Summary

With `composition: "components"`, two endpoints built from the **same**
input schema instance shared a single request body component. Because
path parameters are excluded from the request body per route, the
depicted bodies differed, yet the component cache was keyed on the raw
schema instance — so the first route won and both operations `$ref`d a
component describing only one of the bodies.

`depictBody` now keys the cache on `JSON.stringify(pure)` (the
post-exclusion body schema), mirroring the existing precedent for
parameter components (`depictParams`). Each route therefore references a
component describing its own body, while identical bodies across routes
still dedup to one component.

## Changes

- `express-zod-api/src/documentation-helpers.ts` — key body components
on the serialized body instead of the schema instance; drop the
now-unused `schema` parameter.
- `express-zod-api/src/documentation.ts` — stop passing `schema:
inputSchema` to `depictBody`.
- `express-zod-api/tests/documentation.spec.ts` — new `Issue #3601`
block covering: two routes sharing one schema instance get distinct
correct bodies; identical bodies still dedup; the alias-route variant
(one endpoint mounted at two paths).
- `express-zod-api/tests/documentation-helpers.spec.ts` — drop the
now-unused `schema: ez.raw()` args (and `ez` import).
- `CHANGELOG.md` — bug-fix entry under `v29.1.2`.

No public API change, so no migration rule needed.

<!-- PULLFROG_DIVIDER_DO_NOT_REMOVE_PLZ -->
<sup><a href="https://pullfrog.com"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pullfrog.com/logos/frog-white-full-18px.png"><img
src="https://pullfrog.com/logos/frog-green-full-18px.png" width="9px"
height="9px" style="vertical-align: middle; "
alt="Pullfrog"></picture></a>&nbsp;&nbsp;| [View workflow
run](https://github.com/RobinTail/express-zod-api/actions/runs/31019755900/job... (continued)

1056 of 1107 branches covered (95.39%)

1514 of 1514 relevant lines covered (100.0%)

577.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-24.x - 31025711493.1 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
2 run-22.19.0 - 31025711493.2 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
3 run-26.0.0 - 31025711493.3 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
4 run-26.x - 31025711493.4 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
5 run-22.x - 31025711493.5 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
6 run-24.11.0 - 31025711493.6 05 Aug 2026 04:33PM UTC 50
100.0
GitHub Action Run
Source Files on build 31025711493
  • Tree
  • List 50
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31025711493
  • 60ccf951 on github
  • Prev Build on master (#31020315831)
  • Next Build on master (#31068882763)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc