Synchronize (JSON Schema)
This guide assumes that you have already imported your schema, or at least followed the Import (JSON Schema) guide, and imported the sample schema.
The Merge JSON Schema feature enables users of synchronizing a model that has been changed outside CoreModels, by detecting and applying the changes in CoreModels.
First, open the Import UI, from the Features Tray β Channels β Import Json Schema, then select the space.
If you have used a file for the import, and updated the file, you can upload the new file by going back to the 'Data Source' step then updating the data sources list.
Click on the 'Scan Files' button to go to the preview grid.
CoreModels will fetch the data source then detect and list out all the changes that has happened (1), which are necessary to synchronize the space, it will also show the number of changes categorized by their status in the stats bar (2).
you can now review the changes that has happened, and unmark the changes that you don't want to apply in CoreModels (3), you can also mark/unmark the changes based on their status (4).

Click on Proceed to apply the changes, the UI will auto direct to the Tasks tab and show you the progress of the import process, then it will auto refresh when the merge is complete.
Before any changes are applied, a backup of the model is automatically created during all import and merge processes.
JSON Schema Merge Algorithm, How does it work ?
When re-importing an external data source to a CoreModels space (destination), it uses the type name to find the matching types, once it matches the types, it starts matching child elements, then it tries to compare any remaining type or element.
It compares the source data that is parsed from the data source, with the stored data based on the mappings provided in the profile.
It also detects order updates that has happened to the source, both the order of the objects, and the order of the JSON array elements inside the properties.
Last updated