news-catalyst / reproducible-tinynews-content-api

A webiny installation complete with scripted content models and graphql
0 stars 0 forks source link

Switched site metadata to use more flexible data field (json) #40

Closed jacqui closed 3 years ago

jacqui commented 3 years ago

this switches the site metadata model to use a single data field where the field names and values are stored as JSON.

I'll update the tinycms & frontend to parse the JSON when working with this data. I think this is the right way to approach this info, as it'll probably change from client to client, and over time, and we won't want to have to edit and redeploy the API every time. Or manage the diffs between client API models.