mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
15 lines
572 B
CoffeeScript
15 lines
572 B
CoffeeScript
c = require './../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: ['name', 'body']}
|
|
|
|
c.extendBasicProperties ArticleSchema, 'article'
|
|
c.extendSearchableProperties ArticleSchema
|
|
c.extendVersionedProperties ArticleSchema, 'article'
|
|
c.extendTranslationCoverageProperties ArticleSchema
|
|
c.extendPatchableProperties ArticleSchema
|
|
|
|
module.exports = ArticleSchema
|