diff --git a/specs/lichess-api.yaml b/specs/lichess-api.yaml index b7db264..def0109 100644 --- a/specs/lichess-api.yaml +++ b/specs/lichess-api.yaml @@ -1,6 +1,6 @@ openapi: "3.1.0" info: - version: 2.0.133 + version: 2.0.134 title: Lichess.org API reference contact: name: "Lichess.org API" diff --git a/specs/schemas/PuzzleAndGame.yaml b/specs/schemas/PuzzleAndGame.yaml index d1bd50e..9b3b414 100644 --- a/specs/schemas/PuzzleAndGame.yaml +++ b/specs/schemas/PuzzleAndGame.yaml @@ -69,6 +69,8 @@ properties: type: integer rating: type: integer + fen: + type: string solution: type: array items: diff --git a/src/schemas/PuzzleAndGame.ts b/src/schemas/PuzzleAndGame.ts index bac40f2..b50f4e7 100644 --- a/src/schemas/PuzzleAndGame.ts +++ b/src/schemas/PuzzleAndGame.ts @@ -45,6 +45,7 @@ const PuzzleAndGame = z.object({ initialPly: z.int(), plays: z.int(), rating: z.int(), + fen: z.optional(z.string()), solution: z.array(z.string()), themes: z.array(z.string()), }),