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) } }