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

(@hey-api/sdk) Seperate parameters instead of single object

Open fiftyy opened this issue 1 month ago • 1 comments

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

fiftyy avatar Nov 11 '25 23:11 fiftyy

Hey! This feature would be amazing, since the code rapidly becomes verbose without it.

Any idea when this can be prioritized?

francisco-polaco avatar Nov 24 '25 15:11 francisco-polaco

@mrlubos

Hey! This feature would be amazing, since the code rapidly becomes verbose without it.

Any idea when this can be prioritized?

fiftyy avatar Dec 13 '25 22:12 fiftyy