{
  "openapi": "3.1.0",
  "info": {
    "title": "Lotobak açık çekiliş verisi API",
    "version": "1.0.0",
    "summary": "Türkiye şans oyunlarının çekiliş sonuçları: JSON API, toplu CSV/JSON indirme ve MCP.",
    "description": "Çılgın Sayısal Loto, Süper Loto, Şans Topu, On Numara ve Milli Piyango çekiliş sonuçları. Sonuçlar Milli Piyango Online’ın (Sisal Şans) resmi çekiliş sayfalarından alınır; her kayıt kendi kaynak sayfasına bağlantılıdır.\nAnahtar gerekmez, CORS açık. Tutarlar TL (TRY), tarihler Türkiye saatiyle YYYY-AA-GG.\nLisans: CC BY 4.0. Kaynak satırı: Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)\n\nEnglish: Draw results of the Turkish national lotteries, sourced from the operator’s official draw pages. No key, CORS enabled, CC BY 4.0 with the attribution line above.",
    "license": {
      "name": "CC BY 4.0",
      "identifier": "CC-BY-4.0"
    },
    "contact": {
      "name": "Lotobak",
      "url": "https://www.lotobak.com.tr/iletisim/"
    }
  },
  "externalDocs": {
    "description": "Açık veri sayfası",
    "url": "https://www.lotobak.com.tr/veri/"
  },
  "servers": [
    {
      "url": "https://www.lotobak.com.tr",
      "description": "Lotobak"
    }
  ],
  "tags": [
    {
      "name": "API",
      "description": "JSON sonuç uç noktaları."
    },
    {
      "name": "İndirme",
      "description": "Toplu ve yıllık CSV/JSON dosyaları."
    },
    {
      "name": "MCP",
      "description": "Model Context Protocol (Streamable HTTP, durumsuz, JSON yanıt)."
    }
  ],
  "paths": {
    "/api/v1/sonuclar/{game}/": {
      "get": {
        "tags": [
          "API"
        ],
        "operationId": "latestResults",
        "summary": "Son 10 çekiliş",
        "description": "Oyunun son 10 çekilişi, en yenisi önce.",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Son çekilişler.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LatestResponse"
                },
                "example": {
                  "game": "super-loto",
                  "gameName": "Süper Loto",
                  "url": "https://www.lotobak.com.tr/sonuclar/super-loto/",
                  "source": {
                    "name": "Milli Piyango Online",
                    "url": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026"
                  },
                  "official": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari",
                  "dataset": "https://www.lotobak.com.tr/veri/",
                  "license": {
                    "id": "CC-BY-4.0",
                    "name": "Creative Commons Attribution 4.0 International",
                    "url": "https://creativecommons.org/licenses/by/4.0/",
                    "attribution": "Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)"
                  },
                  "currency": "TRY",
                  "fetchedAt": "2026-12-04T11:43:56.498Z",
                  "draws": [
                    {
                      "date": "2026-12-03",
                      "number": 145,
                      "time": "21:30",
                      "numbers": [
                        29,
                        7,
                        45,
                        25,
                        35,
                        36
                      ],
                      "extras": [],
                      "tiers": [
                        {
                          "label": "6",
                          "winners": 0,
                          "prize": null,
                          "carryover": true,
                          "carryoverAmount": 1120464160.78
                        },
                        {
                          "label": "5",
                          "winners": 25,
                          "prize": 204142.7,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "4",
                          "winners": 1781,
                          "prize": 4457.5,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "3",
                          "winners": 42794,
                          "prize": 225.25,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "2",
                          "winners": 403111,
                          "prize": 25.3,
                          "carryover": false,
                          "carryoverAmount": null
                        }
                      ],
                      "url": "https://www.lotobak.com.tr/sonuclar/super-loto/2026-12-03/",
                      "source": {
                        "name": "Milli Piyango Online",
                        "url": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026"
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Bilinmeyen oyun.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Bilinmeyen oyun."
                }
              }
            }
          },
          "503": {
            "description": "Kaynağa ulaşılamıyor ve depoda kayıt yok.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Sonuç kaynağına şu anda ulaşılamıyor."
                }
              }
            }
          }
        }
      },
      "options": {
        "tags": [
          "API"
        ],
        "operationId": "latestResultsPreflight",
        "summary": "CORS ön isteği",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "CORS başlıkları."
          }
        }
      }
    },
    "/api/v1/sonuclar/{game}/{date}/": {
      "get": {
        "tags": [
          "API"
        ],
        "operationId": "drawResult",
        "summary": "Tek çekiliş",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          },
          {
            "name": "date",
            "in": "path",
            "required": true,
            "description": "Çekiliş tarihi, YYYY-AA-GG.",
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "example": "2026-12-03"
          }
        ],
        "responses": {
          "200": {
            "description": "Çekiliş sonucu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrawResponse"
                },
                "example": {
                  "game": "super-loto",
                  "gameName": "Süper Loto",
                  "url": "https://www.lotobak.com.tr/sonuclar/super-loto/2026-12-03/",
                  "source": {
                    "name": "Milli Piyango Online",
                    "url": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026"
                  },
                  "official": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari",
                  "dataset": "https://www.lotobak.com.tr/veri/",
                  "license": {
                    "id": "CC-BY-4.0",
                    "name": "Creative Commons Attribution 4.0 International",
                    "url": "https://creativecommons.org/licenses/by/4.0/",
                    "attribution": "Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)"
                  },
                  "currency": "TRY",
                  "draw": {
                    "date": "2026-12-03",
                    "number": 145,
                    "time": "21:30",
                    "numbers": [
                      29,
                      7,
                      45,
                      25,
                      35,
                      36
                    ],
                    "extras": [],
                    "tiers": [
                      {
                        "label": "6",
                        "winners": 0,
                        "prize": null,
                        "carryover": true,
                        "carryoverAmount": 1120464160.78
                      },
                      {
                        "label": "5",
                        "winners": 25,
                        "prize": 204142.7,
                        "carryover": false,
                        "carryoverAmount": null
                      },
                      {
                        "label": "4",
                        "winners": 1781,
                        "prize": 4457.5,
                        "carryover": false,
                        "carryoverAmount": null
                      },
                      {
                        "label": "3",
                        "winners": 42794,
                        "prize": 225.25,
                        "carryover": false,
                        "carryoverAmount": null
                      },
                      {
                        "label": "2",
                        "winners": 403111,
                        "prize": 25.3,
                        "carryover": false,
                        "carryoverAmount": null
                      }
                    ],
                    "url": "https://www.lotobak.com.tr/sonuclar/super-loto/2026-12-03/",
                    "source": {
                      "name": "Milli Piyango Online",
                      "url": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Tarih biçimi geçersiz.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Tarih YYYY-AA-GG biçiminde olmalı."
                }
              }
            }
          },
          "404": {
            "description": "Bilinmeyen oyun ya da o tarihte çekiliş yok.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Bu tarihte çekiliş yok."
                }
              }
            }
          },
          "503": {
            "description": "Kaynağa ulaşılamıyor.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "Sonuç kaynağına şu anda ulaşılamıyor."
                }
              }
            }
          }
        }
      }
    },
    "/veri/indir/{game}.json": {
      "get": {
        "tags": [
          "İndirme"
        ],
        "operationId": "bulkJson",
        "summary": "Oyunun tüm çekilişleri, JSON",
        "description": "Depodaki tüm çekilişler, en yenisi önce. Gece senkronundan sonra güncellenir.",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Toplu JSON belgesi.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetDocument"
                },
                "example": {
                  "game": "super-loto",
                  "gameName": "Süper Loto",
                  "year": null,
                  "count": 1,
                  "currency": "TRY",
                  "updatedAt": "2026-12-04T11:43:56.498Z",
                  "source": "Milli Piyango Online",
                  "dataset": "https://www.lotobak.com.tr/veri/",
                  "citation": "Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)",
                  "license": {
                    "id": "CC-BY-4.0",
                    "name": "Creative Commons Attribution 4.0 International",
                    "url": "https://creativecommons.org/licenses/by/4.0/",
                    "attribution": "Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)"
                  },
                  "draws": [
                    {
                      "date": "2026-12-03",
                      "number": 145,
                      "time": "21:30",
                      "numbers": [
                        29,
                        7,
                        45,
                        25,
                        35,
                        36
                      ],
                      "extras": [],
                      "tiers": [
                        {
                          "label": "6",
                          "winners": 0,
                          "prize": null,
                          "carryover": true,
                          "carryoverAmount": 1120464160.78
                        },
                        {
                          "label": "5",
                          "winners": 25,
                          "prize": 204142.7,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "4",
                          "winners": 1781,
                          "prize": 4457.5,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "3",
                          "winners": 42794,
                          "prize": 225.25,
                          "carryover": false,
                          "carryoverAmount": null
                        },
                        {
                          "label": "2",
                          "winners": 403111,
                          "prize": 25.3,
                          "carryover": false,
                          "carryoverAmount": null
                        }
                      ],
                      "url": "https://www.lotobak.com.tr/sonuclar/super-loto/2026-12-03/",
                      "source": {
                        "name": "Milli Piyango Online",
                        "url": "https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026"
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Bilinmeyen oyun."
          }
        }
      }
    },
    "/veri/indir/{game}.csv": {
      "get": {
        "tags": [
          "İndirme"
        ],
        "operationId": "bulkCsv",
        "summary": "Oyunun tüm çekilişleri, CSV",
        "description": "UTF-8 (BOM), CRLF, RFC 4180; en yeni çekiliş önce, çekiliş başına bir satır. Milli Piyango: kategori başına bir satır.\nSayısal oyun sütunları: tarih, cekilis, saat, sayilar, cekilis_sirasi, joker, superstar, ust_kategori, ust_kazanan, ust_ikramiye, ust_devir, kaynak, kaynak_url (ek sayı sütunları oyuna göre: Çılgın joker, superstar; Şans Topu sans_topu; Süper Loto ve On Numara yok).\nMilli Piyango sütunları: tarih, cekilis, saat, kategori, tutar, numara_sayisi, numaralar, kaynak, kaynak_url.\nsayilar küçükten büyüğe, cekilis_sirasi çekiliş sırasıyla, boşlukla ayrılmış. Tutarlar TL, ondalık ayırıcı nokta.",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Toplu CSV.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                },
                "example": "tarih,cekilis,saat,sayilar,cekilis_sirasi,ust_kategori,ust_kazanan,ust_ikramiye,ust_devir,kaynak,kaynak_url\r\n2026-12-03,145,21:30,7 25 29 35 36 45,29 7 45 25 35 36,6,0,,1120464160.78,Milli Piyango Online,https://www.millipiyangoonline.com/super-loto/cekilis-sonuclari.145.2026\r\n"
              }
            }
          },
          "404": {
            "description": "Bilinmeyen oyun."
          }
        }
      }
    },
    "/veri/{game}/{file}": {
      "get": {
        "tags": [
          "İndirme"
        ],
        "operationId": "yearFile",
        "summary": "Yıllık ya da tüm yıllar dosyası (geniş biçim)",
        "description": "Yıllık dosyalar: {YYYY}.csv / {YYYY}.json; tüm yıllar: tum.csv / tum.json. Geniş CSV her ikramiye kategorisi için ayrı sütun verir (eskiden yeniye).",
        "parameters": [
          {
            "name": "game",
            "in": "path",
            "required": true,
            "description": "Game slug.",
            "schema": {
              "$ref": "#/components/schemas/GameSlug"
            }
          },
          {
            "name": "file",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^(\\d{4}|tum)\\.(csv|json)$"
            },
            "example": "2026.csv"
          }
        ],
        "responses": {
          "200": {
            "description": "Dosya.",
            "content": {
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetDocument"
                }
              }
            }
          },
          "404": {
            "description": "Bilinmeyen oyun, yıl ya da dosya adı."
          }
        }
      }
    },
    "/api/mcp/": {
      "post": {
        "tags": [
          "MCP"
        ],
        "operationId": "mcp",
        "summary": "MCP sunucusu (JSON-RPC 2.0)",
        "description": "Streamable HTTP, durumsuz, yalnızca application/json yanıt. Protokol 2026-07-28 (istek başına _meta) ve 2025-11-25/2025-06-18/2025-03-26 (initialize). Araçlar: list_games, latest_results, draw_result, search_draws, number_frequency, check_numbers, recent_corrections. Bildirimler 202 döner; GET ve DELETE 405.",
        "parameters": [
          {
            "name": "MCP-Protocol-Version",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "example": "2026-07-28"
            }
          },
          {
            "name": "Mcp-Method",
            "in": "header",
            "required": false,
            "description": "2026-07-28 isteklerinde zorunlu; gövdedeki method ile aynı olmalı.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Mcp-Name",
            "in": "header",
            "required": false,
            "description": "2026-07-28 tools/call isteklerinde zorunlu; params.name ile aynı.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              },
              "examples": {
                "initialize": {
                  "summary": "initialize (2025-11-25)",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "initialize",
                    "params": {
                      "protocolVersion": "2025-11-25",
                      "capabilities": {},
                      "clientInfo": {
                        "name": "example",
                        "version": "1.0.0"
                      }
                    }
                  }
                },
                "toolsCall": {
                  "summary": "tools/call (2026-07-28)",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 2,
                    "method": "tools/call",
                    "params": {
                      "name": "latest_results",
                      "arguments": {
                        "game": "super-loto",
                        "limit": 1
                      },
                      "_meta": {
                        "io.modelcontextprotocol/protocolVersion": "2026-07-28",
                        "io.modelcontextprotocol/clientCapabilities": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC yanıtı.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "202": {
            "description": "Bildirim kabul edildi (gövde yok)."
          },
          "400": {
            "description": "Geçersiz JSON-RPC, başlık uyuşmazlığı (-32020) ya da desteklenmeyen sürüm (-32022).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "403": {
            "description": "Geçersiz Origin."
          },
          "404": {
            "description": "Bilinmeyen yöntem (-32601, 2026-07-28).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "405": {
            "description": "POST dışı yöntem."
          },
          "413": {
            "description": "Gövde 64 KB’tan büyük."
          },
          "415": {
            "description": "Content-Type application/json değil."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GameSlug": {
        "type": "string",
        "enum": [
          "cilgin-sayisal-loto",
          "super-loto",
          "sans-topu",
          "on-numara",
          "milli-piyango"
        ]
      },
      "Source": {
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "properties": {
          "name": {
            "type": "string",
            "example": "Milli Piyango Online"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "License": {
        "type": "object",
        "required": [
          "id",
          "name",
          "url",
          "attribution"
        ],
        "properties": {
          "id": {
            "type": "string",
            "const": "CC-BY-4.0"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "attribution": {
            "type": "string",
            "const": "Kaynak: Lotobak (lotobak.com.tr) · Resmi veri: Milli Piyango Online (Sisal Şans)"
          }
        }
      },
      "Tier": {
        "type": "object",
        "required": [
          "label",
          "winners",
          "prize",
          "carryover",
          "carryoverAmount"
        ],
        "properties": {
          "label": {
            "type": "string",
            "description": "Kategori (ör. 6, 5+1, 6 + SüperStar)."
          },
          "winners": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Kazanan kolon sayısı."
          },
          "prize": {
            "type": [
              "number",
              "null"
            ],
            "description": "Kolon başına ikramiye, TL."
          },
          "carryover": {
            "type": "boolean",
            "description": "Kaynakta devir yazıyorsa true."
          },
          "carryoverAmount": {
            "type": [
              "number",
              "null"
            ],
            "description": "Devreden tutar, TL."
          }
        }
      },
      "TicketGroup": {
        "type": "object",
        "required": [
          "category",
          "values"
        ],
        "properties": {
          "category": {
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^\\d{1,7}$"
            },
            "description": "Kazanan numaralar ya da son haneler; baştaki sıfırlar korunur."
          }
        }
      },
      "Draw": {
        "type": "object",
        "required": [
          "date",
          "number",
          "time",
          "numbers",
          "extras",
          "tiers",
          "url",
          "source"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "number": {
            "type": "integer",
            "description": "Yıl içindeki çekiliş numarası."
          },
          "time": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^\\d{2}:\\d{2}$",
            "description": "Türkiye saati."
          },
          "numbers": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "description": "Ana sayılar, çekiliş sırasıyla (Milli Piyango için boş)."
          },
          "extras": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "label",
                "value"
              ],
              "properties": {
                "label": {
                  "type": "string",
                  "enum": [
                    "Joker",
                    "SüperStar",
                    "Şans Topu"
                  ]
                },
                "value": {
                  "type": "integer"
                }
              }
            }
          },
          "tiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tier"
            }
          },
          "ticketNumbers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TicketGroup"
            },
            "description": "Yalnızca Milli Piyango."
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "Lotobak çekiliş sayfası."
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          }
        }
      },
      "Envelope": {
        "type": "object",
        "required": [
          "game",
          "gameName",
          "url",
          "source",
          "official",
          "dataset",
          "license",
          "currency"
        ],
        "properties": {
          "game": {
            "$ref": "#/components/schemas/GameSlug"
          },
          "gameName": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          },
          "official": {
            "type": "string",
            "format": "uri"
          },
          "dataset": {
            "type": "string",
            "format": "uri"
          },
          "license": {
            "$ref": "#/components/schemas/License"
          },
          "currency": {
            "type": "string",
            "const": "TRY"
          }
        }
      },
      "LatestResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "required": [
              "draws",
              "fetchedAt"
            ],
            "properties": {
              "fetchedAt": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              },
              "draws": {
                "type": "array",
                "maxItems": 10,
                "items": {
                  "$ref": "#/components/schemas/Draw"
                }
              }
            }
          }
        ]
      },
      "DrawResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Envelope"
          },
          {
            "type": "object",
            "required": [
              "draw"
            ],
            "properties": {
              "draw": {
                "$ref": "#/components/schemas/Draw"
              }
            }
          }
        ]
      },
      "DatasetDocument": {
        "type": "object",
        "required": [
          "game",
          "gameName",
          "year",
          "count",
          "currency",
          "updatedAt",
          "source",
          "dataset",
          "citation",
          "license",
          "draws"
        ],
        "properties": {
          "game": {
            "$ref": "#/components/schemas/GameSlug"
          },
          "gameName": {
            "type": "string"
          },
          "year": {
            "type": [
              "integer",
              "null"
            ],
            "description": "null: tüm yıllar."
          },
          "count": {
            "type": "integer"
          },
          "currency": {
            "type": "string",
            "const": "TRY"
          },
          "updatedAt": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "source": {
            "type": "string"
          },
          "dataset": {
            "type": "string",
            "format": "uri"
          },
          "citation": {
            "type": "string"
          },
          "license": {
            "$ref": "#/components/schemas/License"
          },
          "draws": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Draw"
            },
            "description": "En yenisi önce."
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "JsonRpcRequest": {
        "type": "object",
        "required": [
          "jsonrpc",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "method": {
            "type": "string"
          },
          "params": {
            "type": "object"
          }
        }
      },
      "JsonRpcResponse": {
        "type": "object",
        "required": [
          "jsonrpc"
        ],
        "properties": {
          "jsonrpc": {
            "const": "2.0"
          },
          "id": {
            "type": [
              "string",
              "integer"
            ]
          },
          "result": {
            "type": "object"
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              },
              "data": {}
            }
          }
        }
      }
    }
  }
}