mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
14 lines
342 B
CoffeeScript
14 lines
342 B
CoffeeScript
|
c = require './../schemas'
|
||
|
|
||
|
module.exports = ProductSchema = {
|
||
|
type: 'object'
|
||
|
additionalProperties: false
|
||
|
properties: {
|
||
|
name: { type: 'string' }
|
||
|
amount: { type: 'integer', description: 'Cost in cents' }
|
||
|
gems: { type: 'integer', description: 'Number of gems awarded' }
|
||
|
}
|
||
|
}
|
||
|
|
||
|
c.extendBasicProperties ProductSchema, 'Product'
|