Skip to content

Commit

Permalink
Update arena schemas (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev authored Jun 2, 2024
1 parent c356dd2 commit ef9e6b7
Show file tree
Hide file tree
Showing 13 changed files with 608 additions and 136 deletions.
33 changes: 33 additions & 0 deletions doc/specs/schemas/ArenaPlayerPerformance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
type: object

properties:
name:
type: string
rank:
type: number
title:
type: string
patron:
type: boolean
rating:
type: number
score:
type: number
sheet:
type: object
properties:
scores:
type: string
fire:
type: boolean
nb:
type: object
properties:
game:
type: number
beserk:
type: number
win:
type: number
performance:
type: number
61 changes: 38 additions & 23 deletions doc/specs/schemas/ArenaTournament.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,37 @@
type: object

properties:
id:
type: string
example: 'QITRjufu'
createdBy:
type: string
example: 'lichess'
system:
type: string
const: 'arena'
minutes:
type: integer
example: 57
clock:
$ref: './Clock.yaml'
rated:
type: boolean
example: true
fullName:
type: string
example: 'U1700 SuperBlitz Arena'
nbPlayers:
type: integer
example: 154
variant:
$ref: './Variant.yaml'
startsAt:
type: integer
example: 1522803600000
finishesAt:
type: integer
example: 1522807200000
status:
$ref: './ArenaStatus.yaml'
perf:
$ref: './ArenaPerf.yaml'
secondsToStart:
type: integer
example: 576
hasMaxRating:
type: boolean
example: true
maxRating:
$ref: './ArenaRatingObj.yaml'
minRating:
Expand All @@ -50,49 +41,73 @@ properties:
properties:
nb:
type: integer
example: 20
perf:
$ref: './PerfType.yaml'
example: 'blitz'
onlyTitled:
type: boolean
example: false
teamMember:
type: string
example: 'coders'
private:
type: boolean
example: true
position:
$ref: './ArenaPosition.yaml'
schedule:
type: object
properties:
freq:
type: string
example: 'hourly'
speed:
type: string
example: 'superblitz'
teamBattle:
type: object
properties:
teams:
type: array
items:
type: string
example: 'coders'
nbLeaders:
type: integer
example: 3
winner:
type: object
properties:
id:
type: string
example: 'lichess'
name:
type: string
example: 'lichess'
title:
$ref: './Title.yaml'

example:
{
"id": "XhfVxYPG",
"createdBy": "lichess",
"system": "arena",
"minutes": 27,
"clock": {
"limit": 60,
"increment": 0
},
"rated": true,
"fullName": "Hourly Bullet Arena",
"nbPlayers": 4,
"variant": {
"key": "standard",
"short": "Std",
"name": "Standard"
},
"startsAt": 1716930043067,
"finishesAt": 1716931663067,
"status": 10,
"perf": {
"key": "bullet",
"name": "Bullet",
"position": 0,
"icon": "T"
},
"secondsToStart": 871,
"minRatedGames": {
"nb": 20
},
"schedule": {
"freq": "hourly",
"speed": "bullet"
}
}
Loading

0 comments on commit ef9e6b7

Please sign in to comment.