Shared lexicon schemas for long-form publishing on AT Protocol. Uses typescript to json via prototypey.

Should textContent be nullable in document lexicon? #32

Open woile.eu
Open opened by woile.eu

Hi, running the validation on my website:

I see, on the document lexicon this:

Image

Using sequoia, I've set "publishContent": false,. So it sets the value to null.

Should the lexicon allow nullable? I could make the textContent an empty string, but to me, that has a clear meaning: the content is empty. null would mean it's not being published. I can send a PR if accepted. What do you think?

I can send a PR to update the lexicon if wanted.

Sign up or Sign in to add to the discussion.