editor-js / editor-js/table

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

Open
#62 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
146
Forks
162
Avg merge
5m
Merged PRs (30d)
1

Description

For a valid table block, can the `content` property under any circumstances (now or in the future) be `null` or omitted, and can any array element in `content` (either the top-level array items representing the rows, or the second-level string content values) be `null`? Or are they 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.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.