Skip to content

Commit 1b3a00c

Browse files
Fix serialization exception on sync blocks
1 parent f5c40c6 commit 1b3a00c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ namespace Notion.Client
2929
[JsonSubtypes.KnownSubTypeAttribute(typeof(ParagraphBlock), BlockType.Paragraph)]
3030
[JsonSubtypes.KnownSubTypeAttribute(typeof(PDFBlock), BlockType.PDF)]
3131
[JsonSubtypes.KnownSubTypeAttribute(typeof(QuoteBlock), BlockType.Quote)]
32+
[JsonSubtypes.KnownSubTypeAttribute(typeof(UnsupportedBlock), BlockType.SyncedBlock)]
3233
[JsonSubtypes.KnownSubTypeAttribute(typeof(TableBlock), BlockType.Table)]
3334
[JsonSubtypes.KnownSubTypeAttribute(typeof(TableRowBlock), BlockType.TableRow)]
3435
[JsonSubtypes.KnownSubTypeAttribute(typeof(TableOfContentsBlock), BlockType.TableOfContents)]

0 commit comments

Comments
 (0)