From 2a338c1fe4ef3cb4d09f9b62d11cbd92f034420a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 29 Aug 2019 13:54:28 -0700 Subject: [PATCH] plugins: don't omit empty config values Turns out the go-ipfs config logic really doesn't play well with this. Let's just keep them and avoid encoding empty values another way. --- plugins.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins.go b/plugins.go index c9b1480..08a1acb 100644 --- a/plugins.go +++ b/plugins.go @@ -1,11 +1,11 @@ package config type Plugins struct { - Plugins map[string]Plugin `json:",omitempty"` + Plugins map[string]Plugin // TODO: Loader Path? Leaving that out for now due to security concerns. } type Plugin struct { - Disabled bool `json:",omitempty"` - Config interface{} `json:",omitempty"` + Disabled bool + Config interface{} }