You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.
If I try to write an enum as e.g. \xbf\x67variant\x65hello\xff there's a somewhat confusing error: "invalid type: map, expected variant identifier"
This is probably not common (I was just writing a test with manually written cbor bytes) but theoretically some implementation in another language could always rewrite maps into indeterminate length maps..
The text was updated successfully, but these errors were encountered:
I ran into this with CBOR generated from JSON in Java's Jackson.
[Edit:] It also happens with @JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT), which is roughly equivalent to serde's external tagging.
jcaesar
added a commit
to jcaesar/cbor
that referenced
this issue
Jun 28, 2021
cbor/src/de.rs
Line 859 in a218403
If I try to write an enum as e.g.
\xbf\x67variant\x65hello\xff
there's a somewhat confusing error: "invalid type: map, expected variant identifier"This is probably not common (I was just writing a test with manually written cbor bytes) but theoretically some implementation in another language could always rewrite maps into indeterminate length maps..
The text was updated successfully, but these errors were encountered: