go-ipfs-config: 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.
Steven Allen committed
Aug 29, 2019 at 13:54 UTC
f0b5fe9733aaa35b24312c46d0687f024b31b645
1 file changed
+3
-3
config/plugins.go
+3
-3
@@ -1,11 +1,11 @@
1
package config
2
3
type Plugins struct {
4
- Plugins map[string]Plugin `json:",omitempty"`
4
+ Plugins map[string]Plugin
5
// TODO: Loader Path? Leaving that out for now due to security concerns.
6
}
7
8
type Plugin struct {
9
- Disabled bool `json:",omitempty"`
10
- Config interface{} `json:",omitempty"`
9
+ Disabled bool
10
+ Config interface{}
11
}