editor-js / paragraph

Paragraph Tool for Editor.js 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Output format: Can the 'text' property be null omitted?

cmeeren opened this issue · comments

For a valid paragraph block, can the text property under any circumstances (now or in the future) be null or omitted? Or is it 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 does not explicitly guarantee that text 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.)

Could anyone clarify this, please? Thanks! 😊