You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two different concepts are blurred together in Content Tree, and I think they should be teased apart.
I’m calling them "document form" and "transit form". Definitions:
Document form :: The full ContentTree used to render a document, with all the external fields such as image.picture satisfied.
Transit form :: The sparse ContentTree used when the ContentTree is in transit. All external fields are null or undefined.
Spark creates a Document form ContentTree for Preview, sends to Spark API
Spark API converts that to the Transit form for Content API
Content API stores & sends in Transit form
Customer Products Content Pipeline API receives Transit form, fetches externals
Customer Products Content Pipeline UI receives Transit form and external, builds Document form before render
You always have one or the other, never any mix. image.picture is marked “optional” in ContentTree but it’s not optional! It must always be nullish in Transit form, and must always be a Picture in Document form.
Do you have any ideas on how to express this? Does it need to be expressed (i think yes)?
The text was updated successfully, but these errors were encountered:
Two different concepts are blurred together in Content Tree, and I think they should be teased apart.
I’m calling them "document form" and "transit form". Definitions:
image.picture
satisfied.null
orundefined
.You always have one or the other, never any mix.
image.picture
is marked “optional” in ContentTree but it’s not optional! It must always benullish
in Transit form, and must always be a Picture in Document form.Do you have any ideas on how to express this? Does it need to be expressed (i think yes)?
The text was updated successfully, but these errors were encountered: