Skip to content

Commit

Permalink
fix: emit default values http server (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
m16w committed Feb 6, 2024
1 parent eea9dc5 commit 795bb40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func runGatewayServer(config util.Config, store db.Store, cache cache.Cache) {

opt := runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.JSONPb{
MarshalOptions: protojson.MarshalOptions{
UseProtoNames: true,
EmitDefaultValues: true,
UseProtoNames: true,
},
UnmarshalOptions: protojson.UnmarshalOptions{
DiscardUnknown: true,
Expand Down

0 comments on commit 795bb40

Please sign in to comment.