From 451df7bb4301a3021dd3e51d4efc07f6f829577b Mon Sep 17 00:00:00 2001 From: Gildas Cherruel Date: Thu, 3 Aug 2023 10:34:14 +0200 Subject: [PATCH] Some fields can be empty --- openmessaging_tofrom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmessaging_tofrom.go b/openmessaging_tofrom.go index 9b2a45e..6adf56f 100644 --- a/openmessaging_tofrom.go +++ b/openmessaging_tofrom.go @@ -7,10 +7,10 @@ type OpenMessageTo struct { type OpenMessageFrom struct { ID string `json:"id"` - Type string `json:"idType"` + Type string `json:"idType,omitempty"` Firstname string `json:"firstName,omitempty"` Lastname string `json:"lastName,omitempty"` - Nickname string `json:"nickname"` + Nickname string `json:"nickname,omitempty"` } // Redact redacts sensitive data