diff --git a/config/config.go b/config/config.go index 190f051d66..f1af191fef 100644 --- a/config/config.go +++ b/config/config.go @@ -250,8 +250,8 @@ func resolveFilepaths(baseDir string, cfg *Config) { // MuteTimeInterval represents a named set of time intervals for which a route should be muted. type MuteTimeInterval struct { - Name string `yaml:"name"` - TimeIntervals []timeinterval.TimeInterval `yaml:"time_intervals"` + Name string `yaml:"name" json:"name"` + TimeIntervals []timeinterval.TimeInterval `yaml:"time_intervals" json:"time_intervals"` } // UnmarshalYAML implements the yaml.Unmarshaler interface for MuteTimeInterval.