Skip to content

Conversation

@raphaelzoellner
Copy link

This PR allows to specify the gogoproto.oneof_moretags option in oneof fields. This allows passing additional tags to the generated interface fields of go structs for oneof fields.

This feature refers to the issue described here.

syntax = "proto3";
  
import "gogo/protobuf/gogoproto/gogo.proto";

message T {
  oneof v {
    option (gogoproto.oneof_moretags) = "tag:\"val\"";
    ...
  }
}

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

Successfully merging this pull request may close these issues.

1 participant