From 5af1e9a5a0c61946e73943d653364517a759453a Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Mon, 31 Jan 2022 18:01:24 +0100 Subject: [PATCH] Add `caption` property to code block type Ref: https://developers.notion.com/changelog/caption-property-is-now-supported-in-code-block-type --- block.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block.go b/block.go index da4af31..142d809 100644 --- a/block.go +++ b/block.go @@ -78,7 +78,8 @@ type Callout struct { type Code struct { RichTextBlock - Language *string `json:"language,omitempty"` + Caption []RichText `json:"caption,omitempty"` + Language *string `json:"language,omitempty"` } type Embed struct {