notion icon indicating copy to clipboard operation
notion copied to clipboard

BugFix: Make all `children` fields `Option`

Open ytoml opened this issue 2 years ago • 0 comments

Hi ! I found bug when using NotionApi::get_block_children.

As the document says, children API does not return nested children. Thus, it's possible that returned json doesn't have children key for column_list, column, etc. like this: スクリーンショット 2023-02-12 5 41 39

I just added Option to the type definition of children for each struct.

ytoml avatar Feb 11 '23 20:02 ytoml