Request support multiple schemas
Description
Like this:
export default [
{
input: 'https://get.heyapi.dev/hey-api/backend',
output: 'src/client',
plugins: ['@hey-api/client-fetch'],
},
{
input: 'https://get.heyapi.dev/hey-api/backend2',
output:'src/client2',
plugins: ['@hey-api/client-fetch'],
}
];
Hi @semdy, would you say this is a duplicate of https://github.com/hey-api/openapi-ts/issues/1056?
Yeah, that really resolved the problem, but more simple called by cli like above.
@carson2222 will take care of this
@semdy That's one of features I implemented in this PR https://github.com/hey-api/openapi-ts/pull/2602. It will be soon published so you can use it in the newest version!
Btw I recommend you to use the defineConfig function while defining your config. Your way will work too, but the function has a built in types so creating a config is much easier.
import { defineConfig } from "@hey-api/openapi-ts";
export default defineConfig([
{
input: "https://get.heyapi.dev/hey-api/backend",
output: "src/client",
plugins: ["@hey-api/client-fetch"],
},
{
input: "https://get.heyapi.dev/hey-api/backend2",
output: "src/client2",
plugins: ["@hey-api/client-fetch"],
},
]);
This will be available in the next release. Looking forward to your feedback!