protoc-gen-connect-openapi

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

protoc-gen-connect-openapi

protoc-gen-connect-openapi generates OpenAPI YAML files for Connect from Protocol Buffers definition.

protoc-gen-connect-openapi supports OpenAPI 3.0.

Usage

  1. Install and configure buf

  2. Install protoc-gen-connect-openapi

go install github.com/s-takehana/protoc-gen-connect-openapi@latest
  1. Create a OpenAPI template
info:
  title: Example API
  version: 0.1.0
  1. Configure a buf.gen.yaml file
version: v1
plugins:
  - name: connect-openapi
    out: .
    opt:
      - template=path/to/protoc-gen-connect-openapi_template.yaml
  1. Execute buf
buf generate

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL