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
8 changes: 6 additions & 2 deletions doc/specs/schemas/ArenaPerf.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
type: object
properties:
key:
type: string
example: "blitz"
$ref: "./PerfType.yaml"
name:
type: string
example: "Blitz"
Expand All @@ -12,3 +11,8 @@ properties:
icon:
type: string
example: ")"

required:
- key
- name
- position
3 changes: 3 additions & 0 deletions doc/specs/schemas/ArenaRatingObj.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ properties:
rating:
type: integer
example: 1700

required:
- rating
7 changes: 3 additions & 4 deletions doc/specs/schemas/ArenaStatusName.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type: string
description: The current state of the arena tournament
enum:
- "created"
- "started"
- "finished"
example: "created"
- created
- started
- finished
17 changes: 16 additions & 1 deletion doc/specs/schemas/ArenaTournament.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ properties:
type: string
system:
type: string
const: "arena"
const: arena
minutes:
type: integer
clock:
Expand Down Expand Up @@ -73,3 +73,18 @@ properties:
type: integer
winner:
$ref: "./LightUser.yaml"

required:
- id
- createdBy
- system
- minutes
- clock
- rated
- fullName
- nbPlayers
- variant
- startsAt
- finishesAt
- status
- perf