code: function validateParams(dataSources, cb) {
    dataSources = _.map(dataSources, function(dataSourceUpdateData) {
      var failed = validate(dataSourceUpdateData).has(CONSTANTS.DATA_SOURCE_ID);
  
      if (failed) {
        dataSourceUpdateData.error = buildErrorResponse({error: new Error("Invalid Parameters For Updating Data Source Data Cache"), code: ERROR_CODES.FH_FORMS_INVALID_PARAMETERS});
      }
  
      if (!misc.checkId(dataSourceUpdateData._id)) {
        dataSourceUpdateData.error = buildErrorResponse({error: new Error("Invalid ID Paramter " + dataSourceUpdateData._id), code: ERROR_CODES.FH_FORMS_INVALID_PARAMETERS});
      }
  
      return dataSourceUpdateData;
    });
  
    //Filter out any data sources with invalid parameters.
  
    cb(undefined, dataSources);
  }
docs: Validating Data Source Parameters
  @param dataSources
  @param cb