{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/chessigma/main/json-schema/chessigma-daily-puzzle-schema.json",
  "title": "DailyPuzzle",
  "x-generated": "2026-10-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chessigma-openapi.json#/components/schemas/DailyPuzzle",
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "puzzleId": {
      "type": "string"
    },
    "fen": {
      "type": "string",
      "description": "Position in FEN notation."
    },
    "sideToMove": {
      "type": "string",
      "enum": [
        "white",
        "black"
      ]
    },
    "rating": {
      "type": "integer"
    },
    "themes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "solution": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Moves in UCI notation; first move sets up the puzzle."
    },
    "gameUrl": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    }
  }
}