Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wkornewald opened this issue Jun 18, 2021 · 0 comments
Open
Labels
bug cbor up for grabs A good issue for external contribution

Comments

@wkornewald
Copy link

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
@wkornewald wkornewald changed the title It's impossible to parse CBOR Web Tokens It's impossible to parse non-string keys (e.g. see CBOR Web Tokens) Jun 18, 2021
@sandwwraith sandwwraith added bug cbor up for grabs A good issue for external contribution labels Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cbor up for grabs A good issue for external contribution
Projects
None yet
Development

No branches or pull requests

2 participants