Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to gen protobuf.Any type? #434

Open
dobet opened this issue Mar 25, 2024 · 0 comments
Open

how to gen protobuf.Any type? #434

dobet opened this issue Mar 25, 2024 · 0 comments

Comments

@dobet
Copy link

dobet commented Mar 25, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant