Skip to content

Commit 30d1e29

Browse files
authored
ci: update api (#28)
1 parent 07241c6 commit 30d1e29

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

specs/lichess-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: "3.1.0"
22
info:
3-
version: 2.0.134
3+
version: 2.0.135
44
title: Lichess.org API reference
55
contact:
66
name: "Lichess.org API"

specs/schemas/FIDEPlayer.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ properties:
1919
type: integer
2020
blitz:
2121
type: integer
22+
gender:
23+
type: string
24+
description: FIDE uses mandatory binary gender.
25+
enum:
26+
- M
27+
- F
2228
photo:
2329
$ref: "./FIDEPlayerPhoto.yaml"
2430

src/schemas/FIDEPlayer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const FIDEPlayer = z.object({
1313
standard: z.optional(z.int()),
1414
rapid: z.optional(z.int()),
1515
blitz: z.optional(z.int()),
16+
gender: z.optional(z.literal(["M", "F"])),
1617
photo: z.optional(FIDEPlayerPhoto),
1718
});
1819

0 commit comments

Comments
 (0)