code: def validate_service(self, request, uid):
          
  
          result = get_record_value(request, uid, 'result')
          if not result:
              # No result set for this service, dismiss
              return None
  
          if not api.is_floatable(result):
              return "Expected result value must be numeric"
  
          spec_min = get_record_value(request, uid, "min", result)
          spec_max = get_record_value(request, uid, "max", result)
          error = get_record_value(request, uid, "error", "0")
          if not api.is_floatable(spec_min):
              return "'Min' value must be numeric"
          if not api.is_floatable(spec_max):
              return "'Max' value must be numeric"
          if api.to_float(spec_min) > api.to_float(result):
              return "'Min' value must be below the expected result"
          if api.to_float(spec_max) < api.to_float(result):
              return "'Max' value must be above the expected result"
          if not api.is_floatable(error) or 0.0 < api.to_float(error) > 100:
              return "% Error must be between 0 and 100"
          return None
docs: Validates the specs values from request for the service uid. Returns
          a non-translated message if the validation failed.