From 79f447b712d1523e8cb2507ee7173a3a629fd8ff Mon Sep 17 00:00:00 2001 From: Gary Coady Date: Sat, 1 Feb 2025 15:18:04 +0100 Subject: [PATCH] `sha` is optional in `DiffEntry` if file contents are unchanged --- src/models/repos.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/repos.rs b/src/models/repos.rs index f18f6ef8..99906a71 100644 --- a/src/models/repos.rs +++ b/src/models/repos.rs @@ -79,7 +79,8 @@ pub struct Verification { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[non_exhaustive] pub struct DiffEntry { - pub sha: String, + // unlike the schema online, this can be null if only metadata changed + pub sha: Option, pub filename: String, pub status: DiffEntryStatus, pub additions: u64,