gnostic
gnostic copied to clipboard
how to gen protobuf.Any type?
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?