jlalmes / trpc-openapi

OpenAPI support for tRPC 🧩
https://www.npmjs.com/package/trpc-openapi
MIT License
2.18k stars 147 forks source link

fix: add matched path params into req.params #409

Open benjaminbillet opened 11 months ago

benjaminbillet commented 11 months ago

A quick fix for ensuring req.params is set with path params, so that createContext can access it.

It's express-specific and shouldn't be in core.ts, so I'm not very satisfied by this solution. Other options may imply a lot of changes though. What do you think?