@@ -83,12 +83,11 @@ func Decode(input interface{}, result interface{}) error {
8383 DecodeHook: mapstructure.ComposeDecodeHookFunc(toDurationHookFunc()),
8484 Metadata: nil, // Don't track any metadata
8585 Result: result, // Decode the result into the prefilled options
86− TagName: "json", // Parse all fields that use the yaml tag
86+ TagName: "json", // Parse all fields that use the json tag
8787 ZeroFields: false, // Don't clean the default values from the result map (options)
8888 ErrorUnused: true, // Throw an error if keys have been used that aren't mapped to any struct fields
89− IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with yaml
89+ IgnoreUntaggedFields: true, // Ignore fields in structures that aren't tagged with json
9090 })
91−
9291 if err != nil {
9392 return fmt.Errorf("error creating decoder for config: %w", err)
9493 }