From 261e25c127529dce83268f5659e5921c171e4a0b Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 29 Mar 2020 19:23:02 +0200 Subject: [PATCH] fix: invert conversion check --- dynamic/spec.go | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamic/spec.go b/dynamic/spec.go index d5fa04b..35a5c5b 100644 --- a/dynamic/spec.go +++ b/dynamic/spec.go @@ -125,6 +125,7 @@ func (s spec) checkOutput(fnv reflect.Value) error { continue } + if !field.Type.ConvertibleTo(ptype) { return fmt.Errorf("%s: %w (%s instead of %s)", name, ErrWrongParamTypeFromConfig, field.Type, ptype) } }