Skeets App
I'm most likely missing something but I would have expected the embedded video to be within embed -> video (just like images in the other example). Instead right now all properties of the video struct are just one level up right within embed.
the data structure of a post with an embedded videothe data structure of a post with embedded images
2 1
Samuel
thereโ€™s no reason the properties of the video canโ€™t be at the top level. is that causing you issues?
1 1
Skeets App
a little, yeah. It's because embed is polymorphic and I parse its (nested) content based on the $type within embed
1 1
Jaz
I think this is just the difference between a PostView response from the AppView and a Post record with an embedded video but I may be wrong. The PostView includes appview-specific stuff i.e. links to our CDN and such.
1 3
Jaz
Oh I guess the difference is in the embed.video#view vs embed.images#view? Yeah in that case we didn't wanna add it to a list cause there can only be one video per post.
1 4
Jaz
oh idk in that case, maybe @divy.zone has some opinions on it though? I'm not really sure what use the nesting has
1