Skip to content

how to gen protobuf.Any type? #434

@dobet

Description

@dobet

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions