Skip to content

Commit

Permalink
Add broadcast leaderboard schema and example (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
tors42 authored Mar 14, 2024
1 parent cf3f460 commit 28b68db
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doc/specs/schemas/BroadcastLeaderboardEntry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
type: object
properties:
name:
type: string
example: Hernandez Riera, Jose
score:
type: number
example: 2.5
played:
type: integer
example: 7
rating:
type: integer
example: 2149
title:
type: string
example: FM
fideId:
type: integer
example: 3408230
fed:
type: string
example: CHI
3 changes: 3 additions & 0 deletions doc/specs/schemas/_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,6 @@ BroadcastPgnPush:

TvFeed:
$ref: './TvFeed.yaml'

BroadcastLeaderboardEntry:
$ref: './BroadcastLeaderboardEntry.yaml'
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ get:
responses:
'200':
description: The broadcast leaderboard players
content:
application/json:
schema:
type: array
items:
$ref: '../../schemas/BroadcastLeaderboardEntry.yaml'

0 comments on commit 28b68db

Please sign in to comment.