Description
Would it be possible to add support for multiple OpenAPI spec files? If such a support exists, could you please point me to how I can use it?
In my code, we need to talk to multiple services, and each have their own OpenAPI spec files, a copy of which we have in our repo. However, when I run openapi-typescript-codegen
, since I can only give it one input file, the generated code is only oriented towards one service. However, it should be possible to reuse a lot of the stuff defined in the generated/core
directory, and we only need to create multiple service clients in the generated/services/
directory, and export them all in the generated/index.ts
file. Shipping multiple clients for each service is not ideal, since we're working on a front-end client, so need to minimise the code we ship to end users.
I could maybe build a slightly ugly workaround, where I run openapi-typescript-codegen
for each spec file, and then move some files and edit others, but it would be ideal if support for this was built in.