teobler / swr-request-generator

A tool for generating TypeScript code and interface from swagger by using SWR and axios as client.
https://www.npmjs.com/package/@openapi-integration/swr-request-generator
MIT License
45 stars 10 forks source link

Not everything is generated when using multiple endpoints #17

Closed Marco-Daniel closed 1 month ago

Marco-Daniel commented 1 year ago

Hi,

Our backend generates two openapi.json files that we need to generate all the hooks necessary. When adding both of these to the clients array property only the data from the first json file gets converted to generated hooks, the data from the second file is nowhere to be found. If I use just one endpoint in the clients field I can generate it for both seperatly.

If anything is unclear please let me know. Thank you!

teobler commented 1 year ago

Hi @Marco-Daniel Thanks for reporting this, could you check the latest code if this be fixed as your expectation?

Steps for validating: