mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-25 16:47:58 -05:00
12 lines
373 B
CoffeeScript
12 lines
373 B
CoffeeScript
|
c = require './common'
|
||
|
|
||
|
ArticleSchema = c.object()
|
||
|
c.extendNamedProperties ArticleSchema # name first
|
||
|
|
||
|
ArticleSchema.properties.body = { type: 'string', title: 'Content', format: 'markdown' }
|
||
|
|
||
|
c.extendBasicProperties(ArticleSchema, 'article')
|
||
|
c.extendSearchableProperties(ArticleSchema)
|
||
|
c.extendVersionedProperties(ArticleSchema, 'article')
|
||
|
|
||
|
module.exports = ArticleSchema
|