{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sportstatsapi/json-schema/sportstatsapi-dto-match-change-response-schema.json",
  "title": "dto.MatchChangeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sportstatsapi-changes-api-openapi.yml#/components/schemas/dto.MatchChangeResponse",
  "properties": {
    "away_team": {
      "$ref": "#/$defs/dto.TeamInfo"
    },
    "changed_at": {
      "description": "the latest change (UTC)",
      "type": "string"
    },
    "date": {
      "type": "string"
    },
    "home_team": {
      "$ref": "#/$defs/dto.TeamInfo"
    },
    "league_id": {
      "type": "integer"
    },
    "league_name": {
      "type": "string"
    },
    "match_id": {
      "type": "integer"
    },
    "score_changed_at": {
      "description": "the latest score change",
      "type": "string"
    },
    "static_id": {
      "description": "soccer: the match's code when it has no match id",
      "type": "integer"
    },
    "stats_changed_at": {
      "description": "the latest statistics or box score change",
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "dto.TeamInfo": {
      "properties": {
        "display_name": {
          "description": "DisplayName: the name to show (accents and case from official sources; a managed club's own name), else name. name stays the data provider's: filters match on it.",
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "score": {
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}