This commit is contained in:
Scott Erickson 2014-02-17 12:40:34 -08:00
commit 1ebae24c03

View file

@ -143,29 +143,43 @@ _.extend LevelSessionSchema.properties,
matches: matches:
type: 'array' type: 'array'
title: 'Matches'
description: 'All of the matches a submitted session has played in its current state.'
items: items:
type: 'object' type: 'object'
properties: properties:
date: c.date date: c.date
title: 'Time' title: 'Date computed'
description: 'The date a match was computed.'
metrics: metrics:
type: 'object' type: 'object'
title: 'Metrics'
description: 'Various information about the outcome of a match.'
properties: properties:
rank: rank:
title: 'Rank'
description: 'A 0-indexed ranking representing the player\'s standing in the outcome of a match'
type: 'number' type: 'number'
opponents: opponents:
type: 'array' type: 'array'
title: 'Opponents'
description: 'An array containing information about the opponents\' sessions in a given match.'
items: items:
type: 'object' type: 'object'
properties: properties:
id: id:
title: 'Opponent Session ID'
description: 'The session ID of an opponent.'
type: ['object', 'string'] type: ['object', 'string']
codeSubmitDate: c.date codeSubmitDate: c.date
title: 'Submitted' title: 'Submitted'
description: 'The date which the opponent submitted their session (used to check if the match can be replayed)'
metrics: metrics:
type: 'object' type: 'object'
properties: properties:
rank: rank:
title: 'Opponent Rank'
description: 'The opponent\'s ranking in a given match'
type: 'number' type: 'number'