Sample
Access parent route parameters inside nested express.Router instances using mergeParams: true
sha256:f8ca69ed2b8293632a86541498c8a534e2e59536a647c9c4e6f3d7cd2ad45f88
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Access parent route parameters inside nested express.Router instances using mergeParams: true HOW
- Packages
- express 5.2.1
- Environment
- node
- Created
- 2026-08-16T06:29:57Z
Contract
- assert child router without mergeParams drops parent route parameters with undefined values
- assert child router with mergeParams: true inherits ancestor route parameters across nested tiers
- assert child parameter shadows ancestor parameter when parameter names collide
- assert req.baseUrl and req.path are partitioned at the child router mount point
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9