loop over keys

This commit is contained in:
Shreyas Goenka 2024-09-06 15:32:24 +02:00
parent 8cd26318e8
commit c69e6d97df
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ func FromType(typ reflect.Type, fns []func(typ reflect.Type, s Schema) Schema) (
}
for _, fn := range fns {
for k, v := range c.definitions {
c.definitions[k] = fn(c.seen[k], v)
for k := range c.definitions {
c.definitions[k] = fn(c.seen[k], c.definitions[k])
}
}