Skip to content

Commit af3c39c

Browse files
krehermannCopilot
andauthored
Update operations/validation.go
Co-authored-by: Copilot <[email protected]>
1 parent 796c406 commit af3c39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operations/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func IsSerializable(lggr logger.Logger, v any) bool {
3030

3131
func isProtoMessage(v reflect.Value) bool {
3232
protoMsgType := reflect.TypeOf((*proto.Message)(nil)).Elem()
33-
return v.Type().Implements(protoMsgType)
33+
return v.Type().Implements(protoMsgType) || reflect.PointerTo(v.Type()).Implements(protoMsgType)
3434
}
3535

3636
func isValueSerializable(lggr logger.Logger, v reflect.Value) bool {

0 commit comments

Comments
 (0)