From e544407494864842a155db639c143eb947fce7e1 Mon Sep 17 00:00:00 2001 From: Sonlis Date: Sun, 22 Feb 2026 23:12:19 +0100 Subject: [PATCH 1/2] fix(check data model): Last reported_at may be null --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 11bd69b..e27e6ec 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -204,7 +204,7 @@ pub struct Check { #[serde(rename = "numDistinctUsers")] pub num_distinct_users: u64, #[serde(rename = "lastReportedAt")] - pub last_reported_at: DateTime, + pub last_reported_at: Option>, pub reports: Option>, } From 73be26e8433749d90b4b30dee2f8133025e27304 Mon Sep 17 00:00:00 2001 From: "bastien.jeannelle" Date: Thu, 16 Apr 2026 12:06:54 +0200 Subject: [PATCH 2/2] fix: country code / name is optional --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e27e6ec..c76aaf4 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -217,9 +217,9 @@ pub struct CheckReport { #[serde(rename = "reporterId")] pub reporter_id: u64, #[serde(rename = "reporterCountryCode")] - pub reporter_country_code: String, + pub reporter_country_code: Option, #[serde(rename = "reporterCountryName")] - pub reporter_country_name: String, + pub reporter_country_name: Option, } // Verbose flag if `false`, will exclude reports and the country name field.