codecombat/app/schemas/models/course_instance.schema.coffee

17 lines
495 B
CoffeeScript

c = require './../schemas'
CourseInstanceSchema = c.object {title: 'Course Instance'}
_.extend CourseInstanceSchema.properties,
courseID: c.objectId()
description: {type: 'string'}
members: c.array {title: 'Members'}, c.objectId()
name: {type: 'string'}
ownerID: c.objectId()
prepaidID: c.objectId()
aceConfig:
language: {type: 'string', 'enum': ['python', 'javascript']}
c.extendBasicProperties CourseInstanceSchema, 'CourseInstance'
module.exports = CourseInstanceSchema