mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-30 14:51:13 -04:00
Updated session schema for session aggregation
This commit is contained in:
parent
1b0f15b5f3
commit
9b53873414
1 changed files with 37 additions and 2 deletions
|
@ -100,11 +100,14 @@ _.extend LevelSessionSchema.properties,
|
|||
type: 'object'
|
||||
source:
|
||||
type: 'string'
|
||||
|
||||
# TODO: specify this more
|
||||
|
||||
# TODO: specify this more
|
||||
code:
|
||||
type: 'object'
|
||||
|
||||
submittedCode:
|
||||
type: 'object'
|
||||
|
||||
teamSpells:
|
||||
type: 'object'
|
||||
additionalProperties:
|
||||
|
@ -134,6 +137,38 @@ _.extend LevelSessionSchema.properties,
|
|||
default: false
|
||||
index:true
|
||||
|
||||
matches:
|
||||
type: 'array'
|
||||
items:
|
||||
type: 'object'
|
||||
properties:
|
||||
date: c.date
|
||||
title: 'Time'
|
||||
metrics:
|
||||
type: 'object'
|
||||
properties:
|
||||
rank:
|
||||
type: 'number'
|
||||
opponents:
|
||||
type: 'array'
|
||||
items:
|
||||
type: 'object'
|
||||
properties:
|
||||
id:
|
||||
type: ['object', 'string']
|
||||
codeSubmitDate: c.date
|
||||
title: 'Submitted'
|
||||
metrics:
|
||||
type: 'object'
|
||||
properties:
|
||||
rank:
|
||||
type: 'number'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
c.extendBasicProperties LevelSessionSchema, 'level.session'
|
||||
c.extendPermissionsProperties LevelSessionSchema, 'level.session'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue