diff --git a/schema/schema.go b/schema/schema.go index ab275741e..c82e873bf 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -975,7 +975,7 @@ func (c *Config) idFor(rules fieldRules, rt reflect.Type, rv reflect.Value, pref if !fld.Anonymous { continue } - id, err = c.idFor(rules, fld.Type, rv.Field(i), fld.Name+".") + id, err = c.idFor(rules, fld.Type, rv.Field(i), pref+fld.Name+".") if err != nil || id != nil { return }