openapi-ts
openapi-ts copied to clipboard
(@hey-api/sdk) Seperate parameters instead of single object
Description
Hi, right now, the generated functions take a single object as a parameter, which contains all the request fields.
For example:
ServersService.updateConfig({ id: this.server.id, serverConfig: this.server.serverConfig });
I would like the generator to create functions that use separate parameters instead of a single object, like this:
ServersService.updateConfig(this.server.id, this.server.serverConfig);
Add a configuration property, something like: separateParameters: boolean
Hey! This feature would be amazing, since the code rapidly becomes verbose without it.
Any idea when this can be prioritized?
@mrlubos
Hey! This feature would be amazing, since the code rapidly becomes verbose without it.
Any idea when this can be prioritized?