Skip to content

Output format: Which properties (if any) can be null omitted? #19

@cmeeren

Description

@cmeeren

For a valid checklist block, under any circumstances (now or in the future) :

  • Can the items property be null or omitted?
  • Can any array element in items be null?
  • Can the text or checked properties of any item be null or omitted?

Or are all of the aforementioned properties/values guaranteed to always be present and non-null for this block to be valid?

Context: I'm a back-end .NET developer needing to parse Editor.js documents. The readme lists all of the aforementioned properties/values but does not explicitly guarantee that they will always be present and non-null. Back-end deserialization/parsing in strongly typed languages would be easier with some guarantees about which properties can and can not be null/omitted. (Ideally, any such guarantees should be added to the readme to ensure they are formalized and kept in the future.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions