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
Serialization seems to work -- that 3 in the 4th position is TAG_Int as you'd expect, but it gets deserialized into a Value::Byte (using larger values will give Shorts and then Ints).
Using Blob::from_reader works, and gives Blob { title: "", content: {"test": Int(123)} }.
I think this is caused by using serde(untagged) for the Value enum, but I really don't understand serde well enough to know how to fix this.
The text was updated successfully, but these errors were encountered:
The test passes since none of the values used can be represented in one of the smaller (or rather, earlier in enum Value) types. This is sufficient for a failure:
Consider:
Output:
Serialization seems to work -- that
3
in the 4th position isTAG_Int
as you'd expect, but it gets deserialized into aValue::Byte
(using larger values will giveShort
s and thenInt
s).Using
Blob::from_reader
works, and givesBlob { title: "", content: {"test": Int(123)} }
.I think this is caused by using
serde(untagged)
for theValue
enum, but I really don't understand serde well enough to know how to fix this.The text was updated successfully, but these errors were encountered: