prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  bug: exit code null on snowplow telemetry
  In investigating https://github.com/meltano/internal-data/issues/26 I saw a large increase in bad events. Looks like all of the ones from 2.6.0 and 2.5.0 are from:
  
  `$.exit_code: null found, integer expected`
  
  And I dove in on each one and it's from `add` and `discover` events.
  
  queried using:
  
  ```sql
  select *
  from "RAW"."SNOWPLOW"."EVENTS_BAD"
  where date_trunc('week', uploaded_at) > '2022-08-22'
  and jsontext ilike '%2.5.0%';
  ```
  
  </issue>
  <code>
  [start of src/meltano/core/tracking/schemas.py]
  1 """Meltano Iglu schemas metadata & utilities."""
  2 
  3 from __future__ import annotations
  4 
  5 from dataclasses import dataclass
  6 
  7 DEFAULT_VENDOR = "com.meltano"
  8 
  9 
  10 @dataclass
  11 class IgluSchema:
  12     """Dataclass to store the name, version, vendor, and URL for an Iglu schema."""
  13 
  14     name: str
  15     version: str
  16     vendor: str = DEFAULT_VENDOR
  17 
  18     @property
  19     def url(self) -> str:
  20         """Construct an iglu schema URL.
  21 
  22         Returns:
  23             The URL to the schema.
  24         """
  25         return f"iglu:{self.vendor}/{self.name}/jsonschema/{self.version}"
  26 
  27 
  28 CliContextSchema = IgluSchema("cli_context", "1-1-0")
  29 CliEventSchema = IgluSchema("cli_event", "1-0-1")
  30 BlockEventSchema = IgluSchema("block_event", "1-0-0")
  31 EnvironmentContextSchema = IgluSchema("environment_context", "1-0-0")
  32 ExceptionContextSchema = IgluSchema("exception_context", "1-0-0")
  33 ExitEventSchema = IgluSchema("exit_event", "1-0-0")
  34 PluginsContextSchema = IgluSchema("plugins_context", "1-0-0")
  35 ProjectContextSchema = IgluSchema("project_context", "1-1-0")
  36 TelemetryStateChangeEventSchema = IgluSchema("telemetry_state_change_event", "1-0-0")
  37
  [end of src/meltano/core/tracking/schemas.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/src/meltano/core/tracking/schemas.py b/src/meltano/core/tracking/schemas.py
  --- a/src/meltano/core/tracking/schemas.py
  +++ b/src/meltano/core/tracking/schemas.py
  @@ -30,7 +30,7 @@
   BlockEventSchema = IgluSchema("block_event", "1-0-0")
   EnvironmentContextSchema = IgluSchema("environment_context", "1-0-0")
   ExceptionContextSchema = IgluSchema("exception_context", "1-0-0")
  -ExitEventSchema = IgluSchema("exit_event", "1-0-0")
  +ExitEventSchema = IgluSchema("exit_event", "1-0-1")
   PluginsContextSchema = IgluSchema("plugins_context", "1-0-0")
   ProjectContextSchema = IgluSchema("project_context", "1-1-0")
   TelemetryStateChangeEventSchema = IgluSchema("telemetry_state_change_event", "1-0-0")
  
verification_info: {"golden_diff": "diff --git a/src/meltano/core/tracking/schemas.py b/src/meltano/core/tracking/schemas.py\n--- a/src/meltano/core/tracking/schemas.py\n+++ b/src/meltano/core/tracking/schemas.py\n@@ -30,7 +30,7 @@\n BlockEventSchema = IgluSchema(\"block_event\", \"1-0-0\")\n EnvironmentContextSchema = IgluSchema(\"environment_context\", \"1-0-0\")\n ExceptionContextSchema = IgluSchema(\"exception_context\", \"1-0-0\")\n-ExitEventSchema = IgluSchema(\"exit_event\", \"1-0-0\")\n+ExitEventSchema = IgluSchema(\"exit_event\", \"1-0-1\")\n PluginsContextSchema = IgluSchema(\"plugins_context\", \"1-0-0\")\n ProjectContextSchema = IgluSchema(\"project_context\", \"1-1-0\")\n TelemetryStateChangeEventSchema = IgluSchema(\"telemetry_state_change_event\", \"1-0-0\")\n", "issue": "bug: exit code null on snowplow telemetry\nIn investigating https://github.com/meltano/internal-data/issues/26 I saw a large increase in bad events. Looks like all of the ones from 2.6.0 and 2.5.0 are from:\r\n\r\n`$.exit_code: null found, integer expected`\r\n\r\nAnd I dove in on each one and it's from `add` and `discover` events.\r\n\r\nqueried using:\r\n\r\n```sql\r\nselect *\r\nfrom \"RAW\".\"SNOWPLOW\".\"EVENTS_BAD\"\r\nwhere date_trunc('week', uploaded_at) > '2022-08-22'\r\nand jsontext ilike '%2.5.0%';\r\n```\n", "before_files": [{"content": "\"\"\"Meltano Iglu schemas metadata & utilities.\"\"\"\n\nfrom __future__ import annotations\n\nfrom dataclasses import dataclass\n\nDEFAULT_VENDOR = \"com.meltano\"\n\n\n@dataclass\nclass IgluSchema:\n    \"\"\"Dataclass to store the name, version, vendor, and URL for an Iglu schema.\"\"\"\n\n    name: str\n    version: str\n    vendor: str = DEFAULT_VENDOR\n\n    @property\n    def url(self) -> str:\n        \"\"\"Construct an iglu schema URL.\n\n        Returns:\n            The URL to the schema.\n        \"\"\"\n        return f\"iglu:{self.vendor}/{self.name}/jsonschema/{self.version}\"\n\n\nCliContextSchema = IgluSchema(\"cli_context\", \"1-1-0\")\nCliEventSchema = IgluSchema(\"cli_event\", \"1-0-1\")\nBlockEventSchema = IgluSchema(\"block_event\", \"1-0-0\")\nEnvironmentContextSchema = IgluSchema(\"environment_context\", \"1-0-0\")\nExceptionContextSchema = IgluSchema(\"exception_context\", \"1-0-0\")\nExitEventSchema = IgluSchema(\"exit_event\", \"1-0-0\")\nPluginsContextSchema = IgluSchema(\"plugins_context\", \"1-0-0\")\nProjectContextSchema = IgluSchema(\"project_context\", \"1-1-0\")\nTelemetryStateChangeEventSchema = IgluSchema(\"telemetry_state_change_event\", \"1-0-0\")\n", "path": "src/meltano/core/tracking/schemas.py"}]}