fix: applyconfiguration-gen fails on map to struct fields

This commit is contained in:
Antonin Stefanutti 2023-01-09 14:30:15 +01:00
parent 03b78f3a15
commit 2b70384d4c
No known key found for this signature in database
GPG Key ID: 867EBC6DCE8E6AA2

View File

@ -86,6 +86,7 @@ func (t refGraph) applyConfigForType(field *types.Type) *types.Type {
return &types.Type{ return &types.Type{
Kind: types.Map, Kind: types.Map,
Elem: t.applyConfigForType(field.Elem), Elem: t.applyConfigForType(field.Elem),
Key: t.applyConfigForType(field.Key),
} }
} }
return field return field