go-restful-openapi
go-restful-openapi copied to clipboard
How to generate parameter "description" in message of proto3
The Go struct code generated by protoc 3 is typically in the following format:
struct{ Field1 string
protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty" }
It only includes protobuf and json parameters. I need to generate fields with additional parameters, such as "protobuf:"", "name:"", "json:"", and "description:". How should I write it in protoc 3?
hi, do you want the field tags to appear in the JSON schema ?