Failure in deserializing #[serde(untagged)] enum should generate meaningful error
Author: adityashah1212Created Jul 15, 2026Updated Jul 15, 2026
As title suggests, currently generates `data did not match any variant of untagged enum <Name>` error. This doesn't really give a lot of information as to why nothing matched. I believe just reporting all encountered errors for each variant would help define why each variant was rejected and allow the user to act upon it to fix the contents.
Source: serde-rs/serde