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

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

Open
cmeeren opened this issue Jan 28, 2021 · 1 comment
Open

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

cmeeren opened this issue Jan 28, 2021 · 1 comment

Comments

@cmeeren
Copy link

cmeeren commented Jan 28, 2021

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.)

@cmeeren
Copy link
Author

cmeeren commented Apr 30, 2021

Could anyone clarify this, please? Thanks! 😊

@cmeeren cmeeren closed this as completed Apr 30, 2021
@cmeeren cmeeren reopened this Apr 30, 2021
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