Skip to content

Commit

Permalink
lnd: Update config to emit unpopulated fields in rest gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
nepet committed Oct 6, 2022
1 parent 81ea6ec commit 86628e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/peerswaplnd/peerswapd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ func run() error {
mux := runtime.NewServeMux(
runtime.WithMarshalerOption(runtime.MIMEWildcard, &runtime.JSONPb{
MarshalOptions: protojson.MarshalOptions{
UseProtoNames: true,
UseProtoNames: true,
EmitUnpopulated: true,
},
UnmarshalOptions: protojson.UnmarshalOptions{
DiscardUnknown: true,
Expand Down

0 comments on commit 86628e4

Please sign in to comment.