From cd9636f8fda2f124a0baf66de05e95dca5f26d18 Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Thu, 15 Feb 2024 11:59:57 +0100 Subject: [PATCH] cfg: allow unknown fields in the yaml config This enables to define maps that are not part of the configuration format but can be used for anchors. --- internal/cfg/cfg.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/cfg/cfg.go b/internal/cfg/cfg.go index b1a8111..f711f8f 100644 --- a/internal/cfg/cfg.go +++ b/internal/cfg/cfg.go @@ -32,7 +32,6 @@ type Config struct { func Unmarshal(r io.Reader) (_ *Config, err error) { var result Config dec := yaml.NewDecoder(r) - dec.KnownFields(true) defer func() { // sadly Decode panics on some formatting issues in the input,