You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a proto generated struct which also contains a non proto field for caching purposes, like so
typePIDstruct {
Addressstring`protobuf:"bytes,1,opt,name=Address,proto3" json:"Address,omitempty"`Idstring`protobuf:"bytes,2,opt,name=Id,proto3" json:"Id,omitempty"`p*Process//<-- this field
}
This works nice when serializing as a normal proto message.
But, when suing jsonpb, there is an error thrown that there is no encoder for Process.
Why is gogo jsonpb trying to serialize a field that is not part of the proto contract, has no proto tags and clearly is not a proto type?