Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
1ebae24c03
1 changed files with 15 additions and 1 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue