online/src/js/dropdowns.js
function setValidateLabel () {
  var values = getCheckedAndUnchecked(form.validate.schema, form.validate.spec);

  switch (values.checked.length) {
    case 0:
      form.validate.label.text("Don't validate anything");
      break;
    case 1:
      form.validate.label.text("Don't validate Swagger " + values.unchecked[0]);
      break;
    case 2:
      form.validate.label.text("Validate everything");
  }
}
function setValidateLabel () {
  var values = getCheckedAndUnchecked(form.validate.schema, form.validate.spec);

  switch (values.checked.length) {
    case 0:
      form.validate.label.text("Don't validate anything");
      break;
    case 1:
      form.validate.label.text("Don't validate Swagger " + values.unchecked[0]);
      break;
    case 2:
      form.validate.label.text("Validate everything");
  }
}
function setValidateLabel ( ) { var values = getCheckedAndUnchecked ( form . validate . schema , form . validate . spec ) ; switch ( values . checked . length ) { case 0 : form . validate . label . text ( "Don't validate anything" ) ; break ; case 1 : form . validate . label . text ( "Don't validate Swagger " + values . unchecked [ 0 ] ) ; break ; case 2 : form . validate . label . text ( "Validate everything" ) ; } }
Sets the "validate" label, based on which options are selected
Sets the validate label based on which options are selected