{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crosswire-api-com/json-schema/crosswire-api-com-event-info-schema.json",
  "title": "EventInfo",
  "description": "One row of `/v1/events`: a covered canonical event and its venues.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crosswire-api-com-openapi.json#/components/schemas/EventInfo",
  "properties": {
    "canonical_event_id": {
      "type": "string",
      "title": "Canonical Event Id"
    },
    "venues": {
      "items": {
        "$ref": "#/$defs/Venue"
      },
      "type": "array",
      "title": "Venues"
    },
    "kickoff_utc": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kickoff Utc"
    },
    "pairs": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/PairInfo"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pairs"
    },
    "match_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Match Date"
    },
    "settled": {
      "type": "boolean",
      "title": "Settled",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "canonical_event_id",
    "venues"
  ],
  "$defs": {
    "PairInfo": {
      "properties": {
        "pair_id": {
          "type": "string",
          "title": "Pair Id"
        },
        "outcome_leg": {
          "type": "string",
          "title": "Outcome Leg"
        },
        "polymarket_market_id": {
          "type": "string",
          "title": "Polymarket Market Id"
        },
        "kalshi_market_id": {
          "type": "string",
          "title": "Kalshi Market Id"
        },
        "polymarket_outcome_label": {
          "type": "string",
          "title": "Polymarket Outcome Label"
        },
        "kalshi_outcome_label": {
          "type": "string",
          "title": "Kalshi Outcome Label"
        }
      },
      "type": "object",
      "required": [
        "pair_id",
        "outcome_leg",
        "polymarket_market_id",
        "kalshi_market_id",
        "polymarket_outcome_label",
        "kalshi_outcome_label"
      ],
      "title": "PairInfo",
      "description": "One per-outcome leg-pair under a canonical event (CP-05). `pair_id` is the\noutcome-suffixed canonical id (`…:result#home`) `/v1/audit` accepts as\n`canonical_event_id`."
    },
    "Venue": {
      "type": "string",
      "enum": [
        "polymarket",
        "kalshi"
      ],
      "title": "Venue"
    }
  }
}