openapi-react-query-codegen
openapi-react-query-codegen copied to clipboard
Duplicate endpoints create conflicting data types
Describe the bug
When having endpoints of the same name, eg tags/{tag}/export and labels/{label}/export, only one data type is generated (here ExportData) for all services, which is correct for the first, but wrong for all subsequent services.
To Reproduce
- Create API with endpoints
tags/{tag}/exportandlabels/{label}/export - Run script
- Inspect type errors in
services.gen.ts
OpenAPI spec file routes.json
Expected behavior
Data types free of conflicts, eg ExportData, ExportData1, etc
Screenshots If applicable, add screenshots or logs to help explain your problem.
- OS: macOS v14.4
- Version 1.6.3