mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
13 lines
No EOL
482 B
CoffeeScript
13 lines
No EOL
482 B
CoffeeScript
c = require '../commons/schemas'
|
|
|
|
ArticleSchema = c.object()
|
|
c.extendNamedProperties ArticleSchema # name first
|
|
|
|
ArticleSchema.properties.body = { type: 'string', title: 'Content', format: 'markdown' }
|
|
ArticleSchema.properties.i18n = { type: 'object', title: 'i18n', format: 'i18n', props: ['body'] }
|
|
|
|
c.extendBasicProperties(ArticleSchema, 'article')
|
|
c.extendSearchableProperties(ArticleSchema)
|
|
c.extendVersionedProperties(ArticleSchema, 'article')
|
|
|
|
module.exports = ArticleSchema |