lukeautry / tsoa

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

Feat/RequestProp to access variables inside request parameter @ controller method #1540

Closed jackey8616 closed 6 months ago

jackey8616 commented 7 months ago

All Submissions:

Closing issues Closes #1495 Put closes #XXXX (where XXXX is the issue number) in your comment to auto-close the issue that your PR fixes.

If this is a new feature submission:

Potential Problems With The Approach

This decorator requires preprocess some data inject.
Otherwise the validation would not pass.

Test plan Tested in express, koa and hapi using decorator to access body/payload variable.

jackey8616 commented 7 months ago

@WoH This PR is good to go. thx.