function isTypeValue(value, schema) {
  if (!_.isObject(schema)) {
    return false;
  }
  if (schema.hasOwnProperty('type') && schema.hasOwnProperty('default')) {
    const isDefault = checkValueEqualsDefault(value, schema.default);
    if (isDefault) {
      return true;
    }
  }
  if (schema.hasOwnProperty('type') && !schema.hasOwnProperty('format')) {
    return checkValueOnlyTypes(value, schema.type);
  }
  if (schema.hasOwnProperty('type') && schema.hasOwnProperty('format')) {
    return checkValueTypesAndFormat(value, schema.type, schema.format);
  }
}
Checks if value is the representation of its type like:
"<integer>"
Works in array types
@param {string} value - Value to check for
@param {*} schema - The schema portion used in validation
@returns {Boolean} the value is the representation of its type