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
#[serde(flatten)] is very dependent on the ability of the deserializer to report correct types, but XML deserializer has only two types under the hood: Map and String.
This is impossible to fix from the deserializer side, the fix of serde-rs/serde#1183 is required.
For now avoid using #[serde(flatten)] for types that you want to deserialize from XML.
Hello,
I encountered an unexpected behavior when using
#[serde(flatten)]
with this crate. See the example below.Reproduction
Cargo.toml
:src/main.rs
:Output of
cargo run
:The text was updated successfully, but these errors were encountered: