protoc-gen-connect-openapi icon indicating copy to clipboard operation
protoc-gen-connect-openapi copied to clipboard

Feature Request

Open ls-aron-kyle opened this issue 1 year ago • 1 comments

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

ls-aron-kyle avatar May 13 '24 18:05 ls-aron-kyle

@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 avatar May 13 '24 19:05 sudorandom

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

sudorandom avatar May 20 '24 19:05 sudorandom