Skip to content
New issue

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

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

Already on GitHub? # to your account

#623 Adds custom gogoproto.oneof_moretags option to OneofOptions #712

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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\"";
    ...
  }
}

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

Successfully merging this pull request may close these issues.

1 participant