You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a deeply nested list items in my .md file, like this:
1.**Something important**1. Sub step one
- something to remember
- parameters:
- param 1
- param 2
- param 3
This formats correctly in GH:
Something important
Sub step one
something to remember
parameters:
param 1
param 2
param 3
but when converted to blocks and pushed as children element in the Notion API call I get error: '{"object":"error","status":400,"code":"validation_error","message":"body failed validation: body.children[1].numbered_list_item.children[0].numbered_list_item.children[0].numbered_list_item.children should be not present, instead was `[{\\"object\\":\\"block\\",\\"type\\":\\"bulleted_list_item\\",\\"bullete...`."}'.
I tried recreating that styling manually in Notion and it seems to work.
The text was updated successfully, but these errors were encountered:
Hi, thanks for submitting the issue. I've looked into this and I can reproduce the problem, but it seems it's a limitation imposed by Notion: the block structure is correct, but they allow only up to two levels of nesting in a single request when appending block children.
Related docs: https://developers.notion.com/reference/patch-block-children
If that's the cause of your issue, then I assume you'd have to wait for the first request to be fulfilled, grab the resulting IDs, and then append the "deeply nested" children.
It seems like the only alternative would be flattening the list, but that kind of defeats the purpose of having nested children...
Discuss in #public-issue-15--nested-numberbullet-list-combination-ends-up-with-error
I've a deeply nested list items in my .md file, like this:
This formats correctly in GH:
but when converted to blocks and pushed as children element in the Notion API call I get error:
'{"object":"error","status":400,"code":"validation_error","message":"body failed validation: body.children[1].numbered_list_item.children[0].numbered_list_item.children[0].numbered_list_item.children should be not present, instead was `[{\\"object\\":\\"block\\",\\"type\\":\\"bulleted_list_item\\",\\"bullete...`."}'
.I tried recreating that styling manually in Notion and it seems to work.
The text was updated successfully, but these errors were encountered: