Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix: Make all children fields Option #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ytoml
Copy link

@ytoml ytoml commented Feb 11, 2023

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 ytoml changed the title Make all children fields Option BugFix: Make all children fields Option Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant