When uploading data to the DB, the scheme for the JSON file can be obtained from the DB which can be used to validate the data before the actual upload process.
ping @cbozza @mdejong @kgraf