editor-js / quote

Quote Tool for Editor.js 2.0
MIT License
40 stars 63 forks source link

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

Open cmeeren opened 3 years ago

cmeeren commented 3 years ago

For a valid quote block, can the text, caption, or alignment properties under any circumstances (now or in the future) be null or omitted? 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, 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.)

cmeeren commented 3 years ago

Could anyone clarify this, please? Thanks! 😊