-
I am trying to migrate from // before
const myData: MyRequestType;
MyService.someMethod(myData); // before
MyService.someMethod({requestBody: myData}); // now Is there a way to generate services without that extra |
Beta Was this translation helpful? Give feedback.
Answered by
mrlubos
Aug 11, 2024
Replies: 1 comment 6 replies
-
Hey @Holt59, if we do that, how would you handle conflicts if there's another parameter with the same name in query for example? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, just want to close out this thread. We will not be flattening the parameters in function arguments as it adds a layer of complexity that simply isn't worth it. The current approach is faster and clearly informs the user in which part of the request will the parameter be sent