Skip to content

Commit

Permalink
Update proto MarshalOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbazen committed Feb 27, 2024
1 parent 4d50fa1 commit ae78b7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protoeval-cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ func protoToJson(m []byte, desc protoreflect.MessageDescriptor) ([]byte, error)
return nil, err
}

jsonBytes, err := protojson.Marshal(newMsg)
jsonBytes, err := protojson.MarshalOptions{UseProtoNames: true}.Marshal(newMsg)
// jsonBytes, err := protojson.Marshal(newMsg)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ae78b7a

Please sign in to comment.