Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.04 KB

gRPC Plugins

forked from gRPC-Gateway

About

This repo is forked from the repo gRPC-Gateway, and most of the code has been removed, only the parts related to the protoc plugin are kept.

Plugins list:

  • protoc-gen-openapi3 a plugin for generating OAS3 document with the .proto file.

Installation

$ go get -u github.com/dspo/grpc-plugins/protoc-gen-openapi

Usage

See more: gRPC-Gateway

  1. Generate Openapi3 definitions using protoc-gen-openapi3

    With protoc (just the Openapi3 file):

    protoc -I . --openapi3_out ./gen/openapi3 \
        --openapi3_opt=output_format=yaml \
        your/service/v1/your_service.proto