lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.42k stars 489 forks source link

Not Possible to chain multiple middlewares with @Middlewares decorator #1505

Closed violette-m closed 6 months ago

violette-m commented 9 months ago

Sorting

Expected Behavior

I tryed to chain multiple middleware using this I got this error : TypeError: m is not a function from my generated routes. I looked a bit at @Middlewares decorator code and they should be able to receive an array of functions, but I can't make it work.

Current Behavior

Possible Solution

Steps to Reproduce

      1. 4.

Context (Environment)

Version of the library: Version of NodeJS:

Detailed Description

Breaking change?

github-actions[bot] commented 9 months ago

Hello there violette-m 👋

Thank you for opening your very first issue in this project.

We will try to get back to you as soon as we can.👀

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days