diff --git a/block.go b/block.go index 275f405..ea4ba45 100644 --- a/block.go +++ b/block.go @@ -529,7 +529,7 @@ type ImageBlock struct { type Image struct { Caption []RichText `json:"caption,omitempty"` - Type FileType `json:"type"` + Type FileType `json:"type,omitempty"` File *FileObject `json:"file,omitempty"` External *FileObject `json:"external,omitempty"` } @@ -610,7 +610,7 @@ type PdfBlock struct { type Pdf struct { Caption []RichText `json:"caption,omitempty"` - Type FileType `json:"type"` + Type FileType `json:"type,omitempty"` File *FileObject `json:"file,omitempty"` External *FileObject `json:"external,omitempty"` }