Shaddix / react-query-swagger

Generates react-query hooks based on Swagger API definitions
MIT License
122 stars 4 forks source link

Duplicated functions #31

Closed eladcandroid closed 1 year ago

eladcandroid commented 1 year ago

I'm using npx react-query-swagger /tanstack /input:https://abc.com/WebApi/swagger/v1/swagger.json /output:src/api/axios-client.ts /template:Axios

And I have duplicated functions with the same name:

For example - function alerts declared twice, one for the endpoint api/Reports/alerts and one for /api/Pipelines/Alerts...

What am I missing?

Shaddix commented 1 year ago

sorry for the delayed response, could you provide your swagger.json file so I could take a look?

Meanwhile, you could try adding /operationGenerationMode:MultipleClientsFromFirstTagAndOperationId to see if it helps (see OperationGenerationMode for other possible values)

Shaddix commented 1 year ago

I'm closing this, feel free to reopen with the details (e.g. with a swagger.json)