From 84f1cbd9132bdc1a42c8ce7bc7f4aaa73f05c00d Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 15 Jul 2024 21:18:30 +0200 Subject: [PATCH] fix: skip verified_at if not present --- upub/core/src/model/actor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upub/core/src/model/actor.rs b/upub/core/src/model/actor.rs index a36e14a..57f5243 100644 --- a/upub/core/src/model/actor.rs +++ b/upub/core/src/model/actor.rs @@ -8,6 +8,8 @@ use crate::ext::{JsonVec, TypeName}; pub struct Field { pub name: String, pub value: String, + + #[serde(skip_serializing_if = "Option::is_none")] pub verified_at: Option, #[serde(rename = "type")]