From 4a8c56c07057e3f4b5174cabd3d2b16f5ca361e6 Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Fri, 8 Jul 2022 16:40:01 +0200 Subject: [PATCH] Add omitempty --- message.go | 2 +- status.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/message.go b/message.go index b090701..6ac3167 100644 --- a/message.go +++ b/message.go @@ -34,7 +34,7 @@ type MessageSender struct { type Transaction struct { Data []interface{} `edn:"data"` - OrderingKey string `edn:"ordering-key"` + OrderingKey string `edn:"ordering-key,omitempty"` } type TransactBody struct { diff --git a/status.go b/status.go index 86b5705..cff85ee 100644 --- a/status.go +++ b/status.go @@ -24,7 +24,7 @@ import ( ) type StatusBody struct { - Status Status `edn:"status"` + Status Status `edn:"status,omitempty"` } func SendStatus(ctx EventContext, status Status) error {