Skip to content

Commit db8700c

Browse files
Merge pull request #272 from notion-dotnet/227-add-caption-property-in-code-block
Add caption property in code block 📝
2 parents 4d999e6 + ca5d611 commit db8700c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Src/Notion.Client/Api/Blocks/RequestParams/BlocksUpdateParameters/UpdateBlocks/CodeUpdateBlock.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class Info
1515

1616
[JsonProperty("language")]
1717
public string Language { get; set; }
18+
19+
[JsonProperty("caption")]
20+
public IEnumerable<RichTextBaseInput> Caption { get; set; }
1821
}
1922
}
2023
}

Src/Notion.Client/Models/Blocks/CodeBlock.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ public class Info
1717

1818
[JsonProperty("language")]
1919
public string Language { get; set; }
20+
21+
[JsonProperty("caption")]
22+
public IEnumerable<RichTextBase> Caption { get; set; }
2023
}
2124
}
2225
}

0 commit comments

Comments
 (0)