Skip to content

Commit

Permalink
fix: remove omitempty from richtext vo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Vidmar committed Apr 29, 2024
1 parent c5616df commit bd54130
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions erm/templates/contentful_vo_base.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions test/testapi/gocontentfulvobase.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd54130

Please sign in to comment.