go-restful-openapi icon indicating copy to clipboard operation
go-restful-openapi copied to clipboard

How to generate parameter "description" in message of proto3

Open 0xHigos opened this issue 1 year ago • 1 comments

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?

0xHigos avatar May 08 '23 10:05 0xHigos

hi, do you want the field tags to appear in the JSON schema ?

emicklei avatar Jan 12 '24 20:01 emicklei