def _validate_single_params
      validations = _safe_validations
      validations.each do |val|
        value_to_validate = _value_to_validate(val)
        validator = Evnt::Validator.new(value_to_validate, val[:options])

        if validator.passed?
          @params[val[:param]] = validator.value
        else
          error = val[:options][:err] || "#{val[:param].capitalize} value not accepted"
          err_code = val[:options][:err_code] || val[:param].to_sym
          err(error, code: err_code)
          break
        end
      end

      @params
    end
def _validate_single_params
      validations = _safe_validations
      validations.each do |val|
        value_to_validate = _value_to_validate(val)
        validator = Evnt::Validator.new(value_to_validate, val[:options])

        if validator.passed?
          @params[val[:param]] = validator.value
        else
          error = val[:options][:err] || "#{val[:param].capitalize} value not accepted"
          err_code = val[:options][:err_code] || val[:param].to_sym
          err(error, code: err_code)
          break
        end
      end

      @params
    end
This function validates the single parameters sets with the "validates" method.