Skip to content

Cannot generate codes from multiple yaml #27

Open

Description

@hkawa608

My openapi.yaml refers other files such as components/schemas/definitions.yaml.
However, openapi-generator-bazel seems to support only all-in-one yaml.
Because only openapi.yaml is copied under bazel sandbox folder, code generation fails due to failure of loading RELATIVE ref: ./components/schemas/definitions.yaml.

How can I generate codes from openapi.yaml which consists of multiple yaml files?

Activity

  1. wing328 commented on Dec 4, 2021

    @wing328
    Member

    I've seen others using https://www.npmjs.com/package/openapi-merge to merge multiple specs into a single one as a workaround. You may also want to give it a try.

  2. hkawa608 commented on Dec 8, 2021

    @hkawa608
    ContributorAuthor

    I found a fundamental solution and made a PR.
    Would you review the PR?
    #31

  3. self-assigned this
    on Mar 6, 2025
  4. added
    bugSomething isn't working
    on Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions