Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot generate codes from multiple yaml #27

Open
hkawa608 opened this issue Nov 17, 2021 · 2 comments · May be fixed by #52
Open

Cannot generate codes from multiple yaml #27

hkawa608 opened this issue Nov 17, 2021 · 2 comments · May be fixed by #52
Assignees
Labels
bug Something isn't working

Comments

@hkawa608
Copy link
Contributor

hkawa608 commented Nov 17, 2021

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?

@wing328
Copy link
Member

wing328 commented Dec 4, 2021

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.

@hkawa608
Copy link
Contributor Author

hkawa608 commented Dec 8, 2021

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

@nucle nucle self-assigned this Mar 6, 2025
@nucle nucle added the bug Something isn't working label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants