protoc-gen-doc icon indicating copy to clipboard operation
protoc-gen-doc copied to clipboard

Add field/message/service options support

Open mwitkow opened this issue 9 years ago • 3 comments

In our proto files we make extensive use of option parameters on messages, fields and services, for example for https://github.com/grpc-ecosystem/grpc-gateway or https://github.com/mwitkow/go-proto-validators.

It would be fantastic if the custom moustache templates supported accessing options so we could, for example, list the RESTful URLs of our services.

mwitkow avatar Aug 15 '16 12:08 mwitkow

I'll take this 👍 first part is in https://github.com/pseudomuto/protokit/pull/2

htdvisser avatar Aug 16 '18 16:08 htdvisser

I've been trying to follow along in the protokit code, but just to make sure: would this also make things like [deprecated=true] available to render in protoc-gen-doc?

dwo avatar Oct 25 '18 08:10 dwo

Hi, so Is there support for custom (user-provided) extensions/options for services and messages? I can't seem to land on the relevant doc and the templates wiki is marked "outdated".

aSapien avatar Jun 30 '20 11:06 aSapien