code: def _validate_range(self, max_, min_, max_ex, min_ex, value, path, prefix):
          if not isinstance(value, int) and not isinstance(value, float):
              raise CoreError("Value must be a integer type")
          log.debug(
              u"Validate range : %s : %s : %s : %s : %s : %s",
              max_,
              min_,
              max_ex,
              min_ex,
              value,
              path,
          )
          if max_ is not None and max_ < value:
                  self.errors.append(SchemaError.SchemaErrorEntry(
                      msg=u"Type '{prefix}' has size of '{value}', greater than max limit '{max_}'. Path: '{path}'",
                      path=path,
                      value=nativestr(value) if tt['str'](value) else value,
                      prefix=prefix,
                      max_=max_))
          if min_ is not None and min_ > value:
                  self.errors.append(SchemaError.SchemaErrorEntry(
                      msg=u"Type '{prefix}' has size of '{value}', less than min limit '{min_}'. Path: '{path}'",
                      path=path,
                      value=nativestr(value) if tt['str'](value) else value,
                      prefix=prefix,
                      min_=min_))
          if max_ex is not None and max_ex <= value:
                  self.errors.append(SchemaError.SchemaErrorEntry(
                      msg=u"Type '{prefix}' has size of '{value}', greater than or equals to max limit(exclusive) '{max_ex}'. Path: '{path}'",
                      path=path,
                      value=nativestr(value) if tt['str'](value) else value,
                      prefix=prefix,
                      max_ex=max_ex))
          if min_ex is not None and min_ex >= value:
                  self.errors.append(SchemaError.SchemaErrorEntry(
                      msg=u"Type '{prefix}' has size of '{value}', less than or equals to min limit(exclusive) '{min_ex}'. Path: '{path}'",
                      path=path,
                      value=nativestr(value) if tt['str'](value) else value,
                      prefix=prefix,
                      min_ex=min_ex))