{"size": 440, "ext": "js", "max_stars_repo_path": "test/unit/api/validator/actionTypeParamValidator.js", "max_stars_repo_name": "boastro/Gladys", "max_stars_repo_stars_event_min_datetime": "2019-02-13T08:36:05.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-13T08:36:05.000Z", "max_issues_repo_path": "test/unit/api/validator/actionTypeParamValidator.js", "max_issues_repo_name": "boastro/Gladys", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/unit/api/validator/actionTypeParamValidator.js", "max_forks_repo_name": "boastro/Gladys", "max_forks_repo_forks_event_min_datetime": "2019-02-13T08:36:12.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-13T08:36:12.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 23.1578947368, "max_line_length": 55, "alphanum_fraction": 0.7818181818}
module.exports = validate;



function validate(actionTypeParam) {
  if (actionTypeParam instanceof Array) {
    actionTypeParam.forEach(validateActionTypeParam);
  } else {
    validateActionTypeParam(actionTypeParam);
  }
}

function validateActionTypeParam(actionTypeParam) {
  actionTypeParam.should.be.instanceOf(Object);

  actionTypeParam.should.have.property('variablename');
  actionTypeParam.should.have.property('actiontype');
}
