Skip to content

Commit

Permalink
[DEV] - add omitempty in type for pdf and image
Browse files Browse the repository at this point in the history
  • Loading branch information
Chirab committed Feb 10, 2024
1 parent 6ff0625 commit 80fabe7
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 @@ -438,7 +438,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 @@ -519,7 +519,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 80fabe7

Please sign in to comment.