@@ -96,7 +96,7 @@ type ParagraphBlock struct {
9696 HasChildren bool `json:"has_children,omitempty"`
9797 Paragraph struct {
9898 Text Paragraph `json:"text"`
99- Children []Block `json:"children"`
99+ Children []Block `json:"children,omitempty "`
100100 } `json:"paragraph"`
101101}
102102
@@ -161,7 +161,7 @@ type BulletedListItemBlock struct {
161161 HasChildren bool `json:"has_children,omitempty"`
162162 BulletedListItem struct {
163163 Text Paragraph `json:"text"`
164- Children []Block `json:"children"`
164+ Children []Block `json:"children,omitempty "`
165165 } `json:"bulleted_list_item"`
166166}
167167
@@ -178,7 +178,7 @@ type NumberedListItemBlock struct {
178178 HasChildren bool `json:"has_children,omitempty"`
179179 NumberedListItem struct {
180180 Text Paragraph `json:"text"`
181- Children []Block `json:"children"`
181+ Children []Block `json:"children,omitempty "`
182182 } `json:"numbered_list_item"`
183183}
184184
@@ -195,7 +195,7 @@ type ToDoBlock struct {
195195 HasChildren bool `json:"has_children"`
196196 ToDo struct {
197197 Text Paragraph `json:"text"`
198- Children []Block `json:"children"`
198+ Children []Block `json:"children,omitempty "`
199199 Checked bool `json:"checked"`
200200 } `json:"to_do"`
201201}
@@ -212,10 +212,10 @@ type ToggleBlock struct {
212212 LastEditedTime * time.Time `json:"last_edited_time,omitempty"`
213213 HasChildren bool `json:"has_children,omitempty"`
214214 Text Paragraph `json:"text"`
215- Children []Block `json:"children"`
215+ Children []Block `json:"children,omitempty "`
216216 Toggle struct {
217217 Text Paragraph `json:"text"`
218- Children []Block `json:"children"`
218+ Children []Block `json:"children,omitempty "`
219219 } `json:"toggle"`
220220}
221221
0 commit comments