{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/owlsinsight-com/json-schema/owlsinsight-com-cs2-matches-response-schema.json",
  "title": "CS2MatchesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/owlsinsight-com-historical-data-api-openapi.yml#/components/schemas/CS2MatchesResponse",
  "properties": {
    "data": {
      "properties": {
        "matches": {
          "items": {
            "$ref": "#/$defs/CS2Match"
          },
          "type": "array"
        },
        "pagination": {
          "properties": {
            "limit": {
              "format": "double",
              "type": "number"
            },
            "offset": {
              "format": "double",
              "type": "number"
            },
            "total": {
              "description": "Total matching rows, or null when no filters applied (for performance).",
              "format": "double",
              "type": [
                "number",
                "null"
              ]
            }
          },
          "type": "object",
          "x-owls-required": [
            "total",
            "limit",
            "offset"
          ]
        }
      },
      "type": "object",
      "x-owls-required": [
        "matches",
        "pagination"
      ]
    },
    "success": {
      "type": "boolean"
    }
  },
  "type": "object",
  "x-owls-required": [
    "success",
    "data"
  ],
  "$defs": {
    "CS2Match": {
      "properties": {
        "bestOf": {
          "format": "double",
          "type": "number"
        },
        "eventName": {
          "type": "string"
        },
        "isLan": {
          "type": "boolean"
        },
        "matchDate": {
          "type": "string"
        },
        "matchId": {
          "format": "double",
          "type": "number"
        },
        "matchUrl": {
          "type": "string"
        },
        "score1": {
          "format": "double",
          "type": "number"
        },
        "score2": {
          "format": "double",
          "type": "number"
        },
        "stars": {
          "format": "double",
          "type": "number"
        },
        "team1": {
          "type": "string"
        },
        "team2": {
          "type": "string"
        }
      },
      "type": "object",
      "x-owls-required": [
        "matchId",
        "matchUrl",
        "team1",
        "team2",
        "score1",
        "score2",
        "eventName",
        "matchDate",
        "stars",
        "isLan",
        "bestOf"
      ]
    }
  }
}