Registering a converter for a map field, e.g. decoder.RegisterConverter(map[string]string{}, func (input string) reflect.Value {}), currently fails with a schema: invalid path error.
The issue seems to be that the decoder does not check for registered converters when building structInfo.
|
if conv := c.conv[ft.Kind()]; conv == nil { |
Registering a converter for a map field, e.g.
decoder.RegisterConverter(map[string]string{}, func (input string) reflect.Value {}), currently fails with aschema: invalid patherror.The issue seems to be that the decoder does not check for registered converters when building
structInfo.schema/cache.go
Line 181 in 64644a2