From bd54130f36e9d77723f701cea07cfc57d7c71685 Mon Sep 17 00:00:00 2001 From: Cristian Vidmar Date: Mon, 29 Apr 2024 10:21:12 +0200 Subject: [PATCH] fix: remove omitempty from richtext vo --- erm/templates/contentful_vo_base.gotmpl | 6 +++--- test/testapi/gocontentfulvobase.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/erm/templates/contentful_vo_base.gotmpl b/erm/templates/contentful_vo_base.gotmpl index 45482b5..da61eb7 100644 --- a/erm/templates/contentful_vo_base.gotmpl +++ b/erm/templates/contentful_vo_base.gotmpl @@ -75,10 +75,10 @@ type RichTextData struct { type RichTextGenericNode struct { NodeType string `json:"nodeType"` - Content []*RichTextGenericNode `json:"content,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` + Content []*RichTextGenericNode `json:"content"` + Data map[string]interface{} `json:"data"` Value string `json:"value"` - Marks []RichTextMark `json:"marks,omitempty"` + Marks []RichTextMark `json:"marks"` } type richTextHtmlTag struct { diff --git a/test/testapi/gocontentfulvobase.go b/test/testapi/gocontentfulvobase.go index 0bdda7c..6a4b708 100644 --- a/test/testapi/gocontentfulvobase.go +++ b/test/testapi/gocontentfulvobase.go @@ -75,10 +75,10 @@ type RichTextData struct { type RichTextGenericNode struct { NodeType string `json:"nodeType"` - Content []*RichTextGenericNode `json:"content,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` + Content []*RichTextGenericNode `json:"content"` + Data map[string]interface{} `json:"data"` Value string `json:"value"` - Marks []RichTextMark `json:"marks,omitempty"` + Marks []RichTextMark `json:"marks"` } type richTextHtmlTag struct {