diff --git a/ssi-ucan/src/payload.rs b/ssi-ucan/src/payload.rs index 870e1deca..465f3cb66 100644 --- a/ssi-ucan/src/payload.rs +++ b/ssi-ucan/src/payload.rs @@ -13,6 +13,7 @@ pub use ucan_capabilities_object as capabilities; /// The Payload of a UCAN, with JWS registered claims and UCAN specific claims #[serde_as] #[derive(Serialize, Deserialize, Clone, PartialEq, Eq, Debug, Hash)] +#[serde(deny_unknown_fields)] pub struct Payload { #[serde(rename = "ucv")] semantic_version: SemanticVersion,