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

Specify required fields for blocks #15

Open
runeh opened this issue Aug 23, 2021 · 0 comments
Open

Specify required fields for blocks #15

runeh opened this issue Aug 23, 2021 · 0 comments

Comments

@runeh
Copy link

runeh commented Aug 23, 2021

The spec says the following about blocks:

[..] arbitrary data objects in the array, only requiring _type-key.

and

In its simplest form it's an array of objects of a type with an array of children.

Only one of those statements is true presumably?

Additionally there are questions following from having the fields and requirements properly specified:

  • What are legal names for _type on blocks
  • What are reserved names for _type on blocks
  • What are legal names for _type on spans
  • What are reserved names for _type on spans
  • What are the semantics of a block without a style if any?
  • What are legal values for listItem?
  • What are the semantics of a block without listItem but with level?
  • And vice versa?
  • Can items be nested, given that level is said to represent express visual nesting and hierarchical structures, not structure

And so on.

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

No branches or pull requests

1 participant