don't
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(identity): make '@context' optional

authored by tjh.dev and committed by

tjh 78baeaf3 01e286e4

+1 -1
+1 -1
crates/identity/src/document.rs
··· 25 25 #[derive(Clone, Debug, Deserialize, Serialize)] 26 26 #[serde(rename_all = "camelCase")] 27 27 pub struct DidDocument { 28 - #[serde(rename = "@context")] 28 + #[serde(default, rename = "@context")] 29 29 pub context: Vec<Url>, 30 30 pub id: Box<Did>, 31 31 pub also_known_as: Vec<Url>,