1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2024-11-30 09:07:14 +02:00

Add caption property to code block type

Ref: https://developers.notion.com/changelog/caption-property-is-now-supported-in-code-block-type
This commit is contained in:
David Stotijn 2022-01-31 18:01:24 +01:00
parent 63149ba664
commit 5af1e9a5a0
No known key found for this signature in database
GPG Key ID: B23243A9C47CEE2D

View File

@ -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 {