openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[REQ][typescript-nestjs] Collect request parameters into a single object for service methods

Open arivanandan opened this issue 1 year ago • 0 comments

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.

arivanandan avatar Apr 24 '24 07:04 arivanandan