code: function addValidator(fieldValidator, fieldName, field) {
      fieldValidator[fieldName] = dispatcher.validate(field.type.key);
      if (typeof field.defaultValue !== 'undefined') {
        fieldValidator[fieldName].default(field.defaultValue);
      }
      if (field.type.values) {
        fieldValidator[fieldName].options(field.type.values);
      }
      fieldValidator[fieldName].fieldName = fieldName;
      return fieldValidator[fieldName];
    }
docs: /* Attaches a validator to the input