Skip to content

Commit

Permalink
Prevent emitting empty values from server
Browse files Browse the repository at this point in the history
- Related discussion: #716 (comment)
  • Loading branch information
lbeckman314 committed Feb 8, 2024
1 parent 2281365 commit cf46cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *Server) Serve(pctx context.Context) error {
// grpcMux := runtime.NewServeMux(runtime.WithMarshalerOption("*/*", &mar))
m := protojson.MarshalOptions{
Indent: " ",
EmitUnpopulated: true,
EmitUnpopulated: false,
UseProtoNames: true,
}
u := protojson.UnmarshalOptions{}
Expand Down

0 comments on commit cf46cfe

Please sign in to comment.