Skip to content

Commit

Permalink
deny unknown fields on payload
Browse files Browse the repository at this point in the history
  • Loading branch information
chunningham committed Jul 27, 2023
1 parent adcc882 commit 80bfb2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ssi-ucan/src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<F = JsonValue, A = JsonValue> {
#[serde(rename = "ucv")]
semantic_version: SemanticVersion,
Expand Down

0 comments on commit 80bfb2d

Please sign in to comment.