Skip to content

It's impossible to parse non-string keys (e.g. see CBOR Web Tokens) #1561

@wkornewald

Description

@wkornewald

Describe the bug

According to the RFC, CBOR Web Tokens use a map with integer keys:

https://datatracker.ietf.org/doc/html/rfc8392

Currently, there is no way to parse such data. Ideally, @SerialName would support arbitrary keys (integer, string, etc.), but even parsing into a Map didn't seem to work because the implementation assumes that keys can only be strings.

Environment

  • Kotlin version: 1.5.10
  • Library version: 1.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcborup for grabsA good issue for external contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions