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.
This commit is contained in:
Steven Allen 2019-08-29 13:54:28 -07:00
parent a05268861a
commit f0b5fe9733

View File

@ -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{}
}