From b2c9ffb5a1207e61056958d8114275e4e7a8c90d Mon Sep 17 00:00:00 2001 From: Dmitriy Liokumovich Date: Thu, 31 Oct 2024 09:43:43 -0500 Subject: [PATCH] Add omitempty field to Metadata struct --- content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content.go b/content.go index 9a244d7..ad078c9 100644 --- a/content.go +++ b/content.go @@ -32,7 +32,7 @@ type Content struct { Space *Space `json:"space"` History *History `json:"history,omitempty"` Links *Links `json:"_links,omitempty"` - Metadata *Metadata `json:"metadata"` + Metadata *Metadata `json:"metadata,omitempty"` } // Metadata specifies metadata properties