function compareType(value, type) {
  return value === '<' + type + '>';
}
Checks if value is the representation of its type like:
"<integer>"

@param {string} value - Value to check for
@param {string} type - The type in the schema
@returns {Boolean} the value is the representation of its type