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

update openapi_generator() to accept multiple spec files #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lazcamus
Copy link

Alter the openapi generator invocation to generate multiple -i spec.yaml parameters on the command line.

Tests pass, and I added a multiple file test for the petstore-separate example from the openapi spec

This should fix issue 27

Note: it breaks backwards compatibility

I renamed spec to specs and require a list as input. Callers who do not update will see:

% bazel query //...            
ERROR: /Users/laz/git/openapi-generator-bazel/internal/test/BUILD.bazel:5:18: //internal/test:petstore: no such attribute 'spec' in '_openapi_generator' rule (did you mean 'specs'?)
ERROR: /Users/laz/git/openapi-generator-bazel/internal/test/BUILD.bazel:5:18: //internal/test:petstore: missing value for mandatory attribute 'specs' in '_openapi_generator' rule
ERROR: package contains errors: internal/test
ERROR: package contains errors: internal/test: //internal/test:petstore: no such attribute 'spec' in '_openapi_generator' rule (did you mean 'specs'?)
ERROR: Error evaluating '//...': error loading package 'internal/test': Package 'internal/test' contains errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot generate codes from multiple yaml
1 participant