gnostic icon indicating copy to clipboard operation
gnostic copied to clipboard

how to gen protobuf.Any type?

Open dobet opened this issue 1 year ago • 0 comments

I have an field

message Test1 { string name = 1; }

message Test2 { repeated string names = 1; }

message Reply { google.protobuf.Any Data = 1; } sometimes Reply.Data is Test2.name, sometime Reply.Data is names, when I gen openapi , Reply.Data is ref protobuf.Any. but I want ref Test1 or Test2

What can I do?

dobet avatar Mar 25 '24 09:03 dobet