Skip to content

Share Generated BaseHttpRequest and associated models if generating client code for more than one api spec #1889

Description

@adam-mahmood

say i want to generate 2 clients:
"scripts": {

    "generate": "openapi --input ./spec.yaml--output ./generated/spec --name client1 --client axios"
    "generate2": "openapi --input ./spec2.yaml--output ./generated/spec2 --name client2 --client axios"
}

How do I ensure that the generated code BaseHttpRequest and it's dependencies are shared between the the two clients so that I can create a custom Axios Client that could be used for both?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions