Skip to content

Request support multiple schemas #1995

Closed

Description

@semdy

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'],
}
];

Activity

  1. added
    feature 🚀
    on Apr 30, 2025
  2. mrlubos commented on Apr 30, 2025

    @mrlubos
    Member

    Hi @semdy, would you say this is a duplicate of #1056?

  3. semdy commented on Apr 30, 2025

    @semdy
    Author

    Hi @semdy, would you say this is a duplicate of #1056?

    Yeah, that really resolved the problem, but more simple called by cli like above.

  4. changed the title [-]Request support multiple group configuration[/-] [+]Request support multiple schemas[/+] on Apr 30, 2025
  5. mrlubos commented on Sep 10, 2025

    @mrlubos
    Member

    @carson2222 will take care of this

  6. carson2222 commented on Sep 11, 2025

    @carson2222
    Contributor

    @semdy That's one of features I implemented in this PR #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"],
      },
    ]);
  7. mrlubos commented on Oct 6, 2025

    @mrlubos
    Member

    This will be available in the next release. Looking forward to your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature 🚀

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions