diff --git a/jid/CHANGELOG.md b/jid/CHANGELOG.md index 1e13bebf..0084f650 100644 --- a/jid/CHANGELOG.md +++ b/jid/CHANGELOG.md @@ -1,3 +1,8 @@ +Unreleased + + * Breaking + - serde: Jid is now using untagged enum representation (#66) + Version 0.9.3, release 2022-03-07: * Updates - Bumped minidom to 0.14 diff --git a/jid/src/lib.rs b/jid/src/lib.rs index ab6b62b7..ebed4320 100644 --- a/jid/src/lib.rs +++ b/jid/src/lib.rs @@ -67,6 +67,7 @@ impl fmt::Display for JidParseError { /// An enum representing a Jabber ID. It can be either a `FullJid` or a `BareJid`. #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] +#[cfg_attr(feature = "serde", serde(untagged))] #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum Jid { /// Bare Jid