google / google/gnostic

how to gen protobuf.Any type?

Open
#434 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.