lib/impl/importForms/inputValidator.js
function validateMetadata(metadataPath, cb) {
  validateJSonStructure(metadataPath, function(err, metadataObject) {
    if (err) {
      cb(err, null);
    } else {
      cb(null, metadataObject.files);
    }
  });
}
function validateMetadata(metadataPath, cb) {
  validateJSonStructure(metadataPath, function(err, metadataObject) {
    if (err) {
      cb(err, null);
    } else {
      cb(null, metadataObject.files);
    }
  });
}
function validateMetadata ( metadataPath , cb ) { validateJSonStructure ( metadataPath , function ( err , metadataObject ) { if ( err ) { cb ( err , null ) ; } else { cb ( null , metadataObject . files ) ; } } ) ; }
Validates the metadata.json file

@param {string} metadataPath path to themetadata.json file
@param {function} cb callback
Validates the metadata . json file