From 57fd239409e1de8960c05051a8e1f3726373ae79 Mon Sep 17 00:00:00 2001 From: Jeff Ortel Date: Wed, 24 Jul 2024 09:08:50 -0700 Subject: [PATCH] :bug: Fix api test failure. Signed-off-by: Jeff Ortel --- reflect/fields.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reflect/fields.go b/reflect/fields.go index 73e593c2f..6659c29fa 100644 --- a/reflect/fields.go +++ b/reflect/fields.go @@ -109,6 +109,10 @@ func HasFields(m any, in ...string) (out []string, err error) { } switch fv.Kind() { case reflect.Ptr: + if ft.Anonymous { + inspect(fv.Interface()) + continue + } inst := fv.Interface() mp[ft.Name] = inst case reflect.Struct: