Skip to content

Commit

Permalink
[DEV] - add omitempty in type for pdf and image (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirab authored Feb 15, 2024
1 parent 88e7f04 commit f7607a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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"`
}
Expand Down

0 comments on commit f7607a9

Please sign in to comment.