You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a PUT method without body, e.g. api/profile/acceptTerms
Generate hooks for SWR client
What happens?
Code generated has unused parameters.
exportconstgetPutProfileAcceptTermsMutationFetcher=()=>{return(_: string,{ arg }: {arg: Arguments}): Promise<void>=>{// ^ here is the unused parameter.returnputProfileAcceptTerms();};};
What were you expecting to happen?
Unused code should not be generated
Any other comments?
Here is the code adding this part of the generated code.
Operating System: Windows 11 Package Version: Orval version 6.25.0
The text was updated successfully, but these errors were encountered:
AffeJonsson
changed the title
PUT methods without body generates unused code when generating for SWR
PUT/DELETE/POST methods without body generates unused code when generating for SWR
Mar 14, 2024
What are the steps to reproduce this issue?
What happens?
Code generated has unused parameters.
What were you expecting to happen?
Unused code should not be generated
Any other comments?
Here is the code adding this part of the generated code.
orval/packages/swr/src/index.ts
Line 698 in 9c13f1f
What versions are you using?
Operating System: Windows 11
Package Version: Orval version 6.25.0
The text was updated successfully, but these errors were encountered: