gogo / letmegrpc

[maintainer wanted] generates a web form gui from a grpc specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add tooltips to describe fields

jsgilmore opened this issue · comments

It would be great if it was possible to annotate protobuf fields and have those fields appear as tooltips in the generated web form. This could be used to provide instructions and act as living documentation.

field comments are now generated into the form as tooltips.
Also proto2's defaults are now filled into the form (proto3 does not have defaults).
@gpaul you might find this useful.

I have made some backwards incompatible changes for custom fields, but the form_test.go shows how to use it with the new API. This was necessary to get the comments.