Skip to content

Nested map with integer keys cannot decode (upstream #314) #20

@xe-nvdk

Description

@xe-nvdk

Upstream: vmihailenco#314

A nested map with integer keys (e.g., map[int]map[int]interface{}) encoded by the library cannot be decoded back. The decoder tries to decode the inner map as map[string]interface{} and fails with invalid code=0 decoding string/bytes length. SetMapDecoder with UntypedMap does not help.

Related: Our #5 (upstream vmihailenco#372) and #17 (upstream vmihailenco#327).

Metadata

Metadata

Assignees

No one assigned

    Labels

    regression-v5Regression from v4 to v5upstream-bugBug inherited from upstream vmihailenco/msgpack

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions