{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sportwizzard-com/json-schema/sportwizzard-com-api-response-event-detail-dto-schema.json",
  "title": "ApiResponseEventDetailDto",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sportwizzard-com-openapi.json#/components/schemas/ApiResponseEventDetailDto",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EventDetailDto"
      }
    },
    "nextCursor": {
      "type": "string"
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "EventDetailDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "startTime": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "competition": {
          "type": "string"
        },
        "hasOdds": {
          "type": "boolean"
        },
        "participants": {
          "type": "array",
          "description": "Who takes part in the event, ordered by side, then position, then name. Team sports: side 1 (sideLabel home) and side 2 (away). Tennis, MMA and esports: sides 1 and 2 with no sideLabel; doubles list two players per side (position 1 and 2). Golf: the whole field with no side or position. Absent for futures, which have no event. Each sided participant carries score once the box score exists.",
          "items": {
            "$ref": "#/$defs/Participant"
          }
        },
        "state": {
          "$ref": "#/$defs/EventState"
        },
        "venueId": {
          "type": "string"
        },
        "seasonYear": {
          "type": "integer",
          "format": "int32"
        },
        "context": {
          "$ref": "#/$defs/JsonNode"
        },
        "contextHistory": {
          "$ref": "#/$defs/JsonNode"
        }
      }
    },
    "EventState": {
      "type": "object",
      "description": "The event's latest live state from a source.",
      "properties": {
        "status": {
          "type": "string",
          "description": "e.g. in_progress"
        },
        "period": {
          "type": "string",
          "description": "e.g. Q3"
        },
        "clock": {
          "type": "string",
          "description": "e.g. 07:41"
        },
        "side1Score": {
          "type": "integer",
          "format": "int32"
        },
        "side2Score": {
          "type": "integer",
          "format": "int32"
        },
        "source": {
          "type": "string",
          "description": "The source that reported it."
        },
        "observedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "JsonNode": {
      "type": "object"
    },
    "Meta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "updated": {
          "type": "string",
          "format": "date-time"
        },
        "note": {
          "type": "string"
        }
      }
    },
    "Participant": {
      "type": "object",
      "description": "One participant of an event: a competitor (team) or a player (tennis player, fighter, golfer). Everyone gets side, sideLabel, position and name; competitorId and playerId are returned only to an API key on a paid plan.",
      "properties": {
        "side": {
          "type": "integer",
          "format": "int32",
          "enum": [
            1,
            2
          ],
          "description": "1 or 2. Absent for a field event (golf)."
        },
        "sideLabel": {
          "type": "string",
          "enum": [
            "home",
            "away"
          ],
          "description": "home (side 1) or away (side 2) for team sports. Absent for tennis, MMA and esports, where side order is arbitrary."
        },
        "position": {
          "type": "integer",
          "format": "int32",
          "description": "Order within a side: 1, or 1 and 2 for doubles partners. Absent for golf."
        },
        "name": {
          "type": "string",
          "description": "The competitor's or player's canonical name."
        },
        "competitorId": {
          "type": "string",
          "description": "Competitor (team) id when the participant is a competitor. Returned only to an API key on a paid (non-Free) plan."
        },
        "playerId": {
          "type": "string",
          "description": "Player id when the participant is a player. Returned only to an API key on a paid (non-Free) plan."
        },
        "score": {
          "type": "integer",
          "format": "int32",
          "description": "GET /api/v1/events/{id} only: this side's final score once the box score exists."
        }
      }
    }
  }
}