Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/specs/schemas/ArenaStatus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ enum:
- 10
- 20
- 30
example: 30
2 changes: 1 addition & 1 deletion doc/specs/schemas/Crosstable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ properties:
additionalProperties:
type: number
nbGames:
type: number
type: integer
required:
- users
- nbGames
Expand Down
11 changes: 6 additions & 5 deletions doc/specs/schemas/FIDEPlayer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: object
properties:
id:
type: number
type: integer
name:
type: string
title:
Expand All @@ -11,13 +11,14 @@ properties:
year:
type: [number, "null"]
inactive:
type: boolean
type: integer
standard:
type: number
type: integer
rapid:
type: number
type: integer
blitz:
type: number
type: integer

required:
- id
- name
Expand Down
8 changes: 6 additions & 2 deletions doc/specs/schemas/GameEventPlayer.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: object
properties:
aiLevel:
type: number
type: integer
id:
type: string
name:
Expand All @@ -11,6 +11,10 @@ properties:
- $ref: "./Title.yaml"
- type: "null"
rating:
type: number
type: integer
provisional:
type: boolean

required:
- id
- name
2 changes: 1 addition & 1 deletion doc/specs/schemas/GameFullEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ properties:
rated:
type: boolean
createdAt:
type: number
type: integer
format: int64
white:
$ref: "./GameEventPlayer.yaml"
Expand Down
41 changes: 13 additions & 28 deletions doc/specs/schemas/GameJson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,45 +11,29 @@ properties:
perf:
type: string
createdAt:
type: number
type: integer
format: int64
lastMoveAt:
type: number
type: integer
format: int64
status:
$ref: "./GameStatusName.yaml"
source:
type: string
players:
type: object
properties:
white:
$ref: "./GameUser.yaml"
black:
$ref: "./GameUser.yaml"
required:
- white
- black
$ref: "./GameUsers.yaml"
initialFen:
type: string
winner:
type: string
enum: [white, black]
$ref: "./GameColor.yaml"
opening:
type: object
properties:
eco:
type: string
name:
type: string
ply:
type: number
$ref: "./GameOpening.yaml"
moves:
type: string
pgn:
type: string
daysPerTurn:
type: number
type: integer
analysis:
type: array
items:
Expand All @@ -62,29 +46,30 @@ properties:
type: object
properties:
initial:
type: number
type: integer
increment:
type: number
type: integer
totalTime:
type: number
type: integer
required:
- initial
- increment
- totalTime
clocks:
type: array
items:
type: number
type: integer
division:
type: object
properties:
middle:
type: number
type: integer
description: Ply at which the middlegame begins
end:
type: number
type: integer
description: Ply at which the endgame begins
required: []

required:
- id
- rated
Expand Down
13 changes: 13 additions & 0 deletions doc/specs/schemas/GameOpening.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
properties:
eco:
type: string
name:
type: string
ply:
type: integer

required:
- eco
- name
- ply
6 changes: 3 additions & 3 deletions doc/specs/schemas/GameUser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ properties:
user:
$ref: "./LightUser.yaml"
rating:
type: number
type: integer
ratingDiff:
type: number
type: integer
name:
type: string
provisional:
type: boolean
aiLevel:
type: number
type: integer
analysis:
type: object
properties:
Expand Down
10 changes: 10 additions & 0 deletions doc/specs/schemas/GameUsers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type: object
properties:
white:
$ref: "./GameUser.yaml"
black:
$ref: "./GameUser.yaml"

required:
- white
- black
3 changes: 2 additions & 1 deletion doc/specs/schemas/OpeningExplorerGamePlayer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ properties:
name:
type: string
rating:
type: number
type: integer

required:
- name
- rating
4 changes: 3 additions & 1 deletion doc/specs/schemas/OpponentGoneEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ properties:
gone:
type: boolean
claimWinInSeconds:
type: number
type: integer

required:
- type
- gone

example: { "type": "opponentGone", "gone": true, "claimWinInSeconds": 8 }
2 changes: 1 addition & 1 deletion doc/specs/schemas/PuzzleActivity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ type: object

properties:
date:
type: number
type: integer
puzzle:
type: object
properties:
Expand Down
12 changes: 6 additions & 6 deletions doc/specs/schemas/Simul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ properties:
- type: object
properties:
rating:
type: number
type: integer
provisional:
type: boolean
gameId:
Expand Down Expand Up @@ -51,12 +51,12 @@ properties:
text:
type: string
estimatedStartAt:
type: number
type: integer
startedAt:
type: number
type: integer
finishedAt:
type: number
type: integer
nbApplicants:
type: number
type: integer
nbPairings:
type: number
type: integer
7 changes: 3 additions & 4 deletions doc/specs/schemas/SwissStatus.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type: string
description: The current state of the swiss tournament
enum:
- "created"
- "started"
- "finished"
example: "created"
- created
- started
- finished
5 changes: 1 addition & 4 deletions doc/specs/schemas/TvGame.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ properties:
gameId:
type: string
color:
type: string
enum:
- "white"
- "black"
$ref: "./GameColor.yaml"

required:
- user
Expand Down
10 changes: 10 additions & 0 deletions doc/specs/schemas/Verdict.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type: object
properties:
condition:
type: string
verdict:
type: string

required:
- condition
- verdict
10 changes: 1 addition & 9 deletions doc/specs/schemas/Verdicts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ properties:
list:
type: array
items:
type: object
properties:
condition:
type: string
verdict:
type: string
required:
- condition
- verdict
$ref: "./Verdict.yaml"

required:
- accepted
Expand Down