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
I encountered an issue where serde fails to deserialize a key as an integer when it is wrapped in a tagged enum. I was able to create a minimal code example, see below. The deserialization results in the following error: Error("invalid type: string \"5\", expected u8", line: 0, column: 0). The code example works when the #[serde(tag = "type")] attribute is removed from the enum. The serialized output is {"type":"Full","param":{"5":2}}.
I encountered an issue where serde fails to deserialize a key as an integer when it is wrapped in a tagged enum. I was able to create a minimal code example, see below. The deserialization results in the following error:
Error("invalid type: string \"5\", expected u8", line: 0, column: 0)
. The code example works when the#[serde(tag = "type")]
attribute is removed from the enum. The serialized output is{"type":"Full","param":{"5":2}}
.The text was updated successfully, but these errors were encountered: