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

How to make a single OpenAPI spec with multiple protobuf services #10

Closed
ls-aron-kyle opened this issue May 13, 2024 · 2 comments
Closed

Comments

@ls-aron-kyle
Copy link

It would be nice if there was a way to combine several services in to a single open api yaml file.

@sudorandom
Copy link
Owner

@ls-aron-kyle You should be able to get this behavior right now.

If you're using buf, you can use strategy: all in your buf.gen.yaml file like this:

version: v1
plugins:
  - plugin: connect-openapi
    out: out
    strategy: all
    opt:
    - path=openapi.yaml

You should also be able to do the same thing with protoc following the examples here: https://buf.build/docs/configuration/v1/buf-gen-yaml#strategy

@sudorandom sudorandom changed the title Feature Request How to make a single OpenAPI spec with multiple protobuf services May 20, 2024
@sudorandom
Copy link
Owner

I'm going to go ahead and close this. If this doesn't work for you, feel free to re-open.

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

No branches or pull requests

2 participants