{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/odds-api-io/json-schema/odds-api-io-dto-simple-event-dto-schema.json",
  "title": "dto.SimpleEventDto",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/odds-api-io-openapi.json#/components/schemas/dto.SimpleEventDto",
  "type": "object",
  "properties": {
    "away": {
      "type": "string"
    },
    "awayId": {
      "type": "integer"
    },
    "bookmakerCount": {
      "type": "integer"
    },
    "date": {
      "type": "string"
    },
    "home": {
      "type": "string"
    },
    "homeId": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "league": {
      "$ref": "#/$defs/dto.League"
    },
    "scores": {
      "$ref": "#/$defs/dto.Score"
    },
    "sport": {
      "$ref": "#/$defs/dto.Sport"
    },
    "status": {
      "type": "string"
    },
    "clock": {
      "allOf": [
        {
          "$ref": "#/$defs/dto.ClockDto"
        }
      ],
      "description": "Live match clock (live events only; absent when no clock data is available)"
    },
    "esports": {
      "allOf": [
        {
          "$ref": "#/$defs/dto.EsportsDto"
        }
      ],
      "description": "Esports events only: game, parent league, region and match format"
    }
  },
  "$defs": {
    "dto.ClockDto": {
      "type": "object",
      "description": "Live match-clock state for in-play events. minute/playedSeconds are extrapolated server-side from the live feed and only advance while running is true.",
      "properties": {
        "minute": {
          "type": "integer",
          "description": "Current match minute"
        },
        "playedSeconds": {
          "type": "integer",
          "description": "Seconds of play elapsed"
        },
        "period": {
          "type": "integer",
          "description": "Current period number"
        },
        "running": {
          "type": "boolean",
          "description": "Whether the clock is currently running"
        },
        "statusDetail": {
          "type": "string",
          "description": "Human-readable phase of play"
        },
        "serve": {
          "type": "string",
          "enum": [
            "home",
            "away"
          ],
          "description": "Current server (tennis, table tennis, volleyball)"
        },
        "injuryTime": {
          "type": "integer",
          "description": "Announced injury/stoppage time in minutes (football)"
        },
        "periodStartedAt": {
          "type": "integer",
          "description": "Unix timestamp (seconds) when the current period started. Sent only when the feed has no played clock (for example ice hockey games with basic coverage), never alongside playedSeconds. Wall time, not game time: a stopped clock makes the elapsed wall time longer than the time played, so never treat it as playedSeconds. Omitted when the value is missing, in the future, or more than 3 hours old. Also present in WebSocket clock snapshots."
        }
      }
    },
    "dto.EsportsDto": {
      "type": "object",
      "description": "Present on esports events only",
      "properties": {
        "game": {
          "allOf": [
            {
              "$ref": "#/$defs/dto.Sport"
            }
          ],
          "description": "The game being played, e.g. {\"name\": \"Valorant\", \"slug\": \"valorant\"}"
        },
        "league": {
          "allOf": [
            {
              "$ref": "#/$defs/dto.League"
            }
          ],
          "description": "Parent league (VCT, LCK, LEC). Its slug stays the same across the league's splits and stages."
        },
        "region": {
          "description": "Region of the tournament: Western Europe, Eastern Europe, North America, South America, Asia, Oceania or Middle East. Omitted when unknown.",
          "type": "string"
        },
        "format": {
          "allOf": [
            {
              "$ref": "#/$defs/dto.EsportsFormatDto"
            }
          ],
          "description": "Match format. Omitted when unknown."
        }
      }
    },
    "dto.EsportsFormatDto": {
      "type": "object",
      "properties": {
        "type": {
          "description": "bestOf or firstTo",
          "type": "string"
        },
        "games": {
          "description": "Number of games: 3 for a best of 3",
          "type": "integer"
        }
      }
    },
    "dto.League": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    },
    "dto.PeriodScore": {
      "type": "object",
      "properties": {
        "away": {
          "type": "integer"
        },
        "home": {
          "type": "integer"
        },
        "overs": {
          "allOf": [
            {
              "$ref": "#/$defs/dto.SideFloats"
            }
          ],
          "description": "Cricket only. Overs bowled by each side in this innings."
        },
        "wickets": {
          "allOf": [
            {
              "$ref": "#/$defs/dto.SideInts"
            }
          ],
          "description": "Cricket only. Wickets lost by each side in this innings."
        }
      }
    },
    "dto.Score": {
      "type": "object",
      "properties": {
        "away": {
          "type": "integer"
        },
        "home": {
          "description": "Headline result: includes overtime, never a penalty shootout.",
          "type": "integer"
        },
        "periods": {
          "description": "Keyed p1..pN (that period only), ft, ot and ap (running totals after regulation, overtime and a penalty shootout), currentgame, mapN, inningN. See https://docs.odds-api.io/guides/live-events#period-scores",
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/dto.PeriodScore"
          }
        }
      }
    },
    "dto.SideFloats": {
      "type": "object",
      "description": "Home/away pair that can be fractional. Cricket overs use cricket notation: 19.3 means nineteen overs and three balls.",
      "properties": {
        "away": {
          "type": "number"
        },
        "home": {
          "type": "number"
        }
      }
    },
    "dto.SideInts": {
      "type": "object",
      "description": "Home/away pair of whole numbers (cricket wickets).",
      "properties": {
        "away": {
          "type": "integer"
        },
        "home": {
          "type": "integer"
        }
      }
    },
    "dto.Sport": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      }
    }
  }
}