Skip to content

dspo/grpc-plugins

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Languages

  • Go 98.0%
  • Makefile 2.0%