Skip to content

Register converter for map type support #78

@rwl

Description

@rwl

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.

schema/cache.go

Line 181 in 64644a2

if conv := c.conv[ft.Kind()]; conv == nil {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions