mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-26 21:02:02 -04:00
Added titles and descriptions for schema
This commit is contained in:
parent
6d87b422f6
commit
b4f75c6274
1 changed files with 15 additions and 1 deletions
|
@ -143,29 +143,43 @@ _.extend LevelSessionSchema.properties,
|
|||
|
||||
matches:
|
||||
type: 'array'
|
||||
title: 'Matches'
|
||||
description: 'All of the matches a submitted session has played in its current state.'
|
||||
items:
|
||||
type: 'object'
|
||||
properties:
|
||||
date: c.date
|
||||
title: 'Time'
|
||||
title: 'Date computed'
|
||||
description: 'The date a match was computed.'
|
||||
metrics:
|
||||
type: 'object'
|
||||
title: 'Metrics'
|
||||
description: 'Various information about the outcome of a match.'
|
||||
properties:
|
||||
rank:
|
||||
title: 'Rank'
|
||||
description: 'A 0-indexed ranking representing the player\'s standing in the outcome of a match'
|
||||
type: 'number'
|
||||
opponents:
|
||||
type: 'array'
|
||||
title: 'Opponents'
|
||||
description: 'An array containing information about the opponents\' sessions in a given match.'
|
||||
items:
|
||||
type: 'object'
|
||||
properties:
|
||||
id:
|
||||
title: 'Opponent Session ID'
|
||||
description: 'The session ID of an opponent.'
|
||||
type: ['object', 'string']
|
||||
codeSubmitDate: c.date
|
||||
title: 'Submitted'
|
||||
description: 'The date which the opponent submitted their session (used to check if the match can be replayed)'
|
||||
metrics:
|
||||
type: 'object'
|
||||
properties:
|
||||
rank:
|
||||
title: 'Opponent Rank'
|
||||
description: 'The opponent\'s ranking in a given match'
|
||||
type: 'number'
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue