Guidance on Importing an Existing and Exported Mockaroo Schema (in JSON Format)

Hi there – I’m trying to import an exported schema, and running into all kinds of trouble. It looks like the import schema option doesn’t support the export / backup schema format. Is that true?

I’m trying to automate creating a schema with 400+ fields of different data types. I’m generating the Mockaroo schema with CLI tooling aligning to the export / backup schema format. When i try to import the schema – it seems like Mockaroo is grabbing the top-level keys and using them to represent columns.

This is a different behavior than what I’d expect from the export / backup format. I’d like some guidance on what is the JSON format for imports, and would also like to know if I can use the export / backup format to import new schemas.

Thanks in advance – looking forward to hearing from you! :slight_smile:

Best,

A.
201.486.0089

To restore from a backup you need to go to Schemas => Restore From Backup…

You can use the restore functionality to create new schemas, you just need to remove the id on the schema and all fields in the json.

1 Like