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
@samuel.fm
at a guess, I think images are like that because it’s an array
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