Import/export JSON schema for models

I noticed that dato uses a json-schema definition for validating the structure of your own API.
I also love the ERD export of the content model.
I think a valuable feature would be to expose a json-schema definition for our sites’ data models.

reasoning: we’re investigating better ways to enforce data integrity within our sites. to do this we intend to define our content models with json-schema so that we can validate the data is being returned in the proper shape. we also intend to implement a way of syncing changes to the schema back up to Dato so that our engineers can maintain the content model in code (not just through the GUI).

it seems like you’re already keen on json-schema and it’s benefits, it would be great if that could trickle down to our sites’ content models as well

Originally posted by

We are going to implement an import/export functionality for the model schema

Any news on this? :slight_smile:

Ping! This would be a very welcome feature indeed.

hello @colin welcome :slight_smile:

We want to implement this feature request but it’s not going to happen in this iteration. This is what we have planned:

But in the next iterations we are going to implement this or something equivalent as a backup/restore feature as per

So expect that probably within the next six months, sorry but I cannot be more accurate.


Appreciate the response @matjack1 and outline timeline is fine :slight_smile:. Thanks for the warm welcome.

1 Like

My use case is for using gatsby themes. I want to be able to auto populate datocms models to match my themes so I can get up and running quickly. Looking forward to this

1 Like

Also need something like this for a kit we’re working on