{"size": 260, "ext": "js", "max_stars_repo_path": "test/utils.js", "max_stars_repo_name": "Wardormeur/cp-permissions", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/utils.js", "max_issues_repo_name": "Wardormeur/cp-permissions", "max_issues_repo_issues_event_min_datetime": "2017-02-09T12:39:35.000Z", "max_issues_repo_issues_event_max_datetime": "2018-10-05T10:40:04.000Z", "max_forks_repo_path": "test/utils.js", "max_forks_repo_name": "Wardormeur/cp-permissions", "max_forks_repo_forks_event_min_datetime": "2016-09-12T08:47:21.000Z", "max_forks_repo_forks_event_max_datetime": "2016-12-09T17:10:03.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 2, "avg_line_length": 21.6666666667, "max_line_length": 84, "alphanum_fraction": 0.5807692308}
var _ = require('lodash');
module.exports = {
  isValidFormat: function (payload) {
    if (_.isObject(payload)) {
      if (_.has(payload, 'allowed')) { // allowed can then be an object or a boolean
        return true;
      }
    }
    return false;
  }
};
