compareTypes(currentType, typeToValidate) {
    return currentType === typeToValidate;
  }
Compares two types and return if they match or not
@param {string} currentType the type in schema
@param {string} typeToValidate the type to compare
@returns {boolean} the result of the comparation