openapi-generator
openapi-generator copied to clipboard
[REQ][typescript-nestjs] Collect request parameters into a single object for service methods
Is your feature request related to a problem? Please describe.
When you have many parameters in your request, it's way easier to organize it into an object and pass it. This is known and is supported by the additionalOption useSingleRequestParameter in other generators.
Describe the solution you'd like
Implement useSingleRequestParameter
Describe alternatives you've considered
I suppose you could write a wrapper layer or use typescript-axios and build a nestjs module around it.
Additional context
There's a good reference here on the implementation for typescript-axios. Some bits are different but I'm using this to try to implement this.