2014-04-12 10:51:02 -07:00
|
|
|
c = require './../schemas'
|
2014-04-12 14:05:56 +05:30
|
|
|
|
|
|
|
ArticleSchema = c.object()
|
|
|
|
c.extendNamedProperties ArticleSchema # name first
|
|
|
|
|
2014-07-01 10:16:26 +08:00
|
|
|
ArticleSchema.properties.body = {type: 'string', title: 'Content', format: 'markdown'}
|
|
|
|
ArticleSchema.properties.i18n = {type: 'object', title: 'i18n', format: 'i18n', props: ['name', 'body']}
|
2014-04-12 14:05:56 +05:30
|
|
|
|
2014-04-12 14:16:41 +05:30
|
|
|
c.extendBasicProperties ArticleSchema, 'article'
|
|
|
|
c.extendSearchableProperties ArticleSchema
|
|
|
|
c.extendVersionedProperties ArticleSchema, 'article'
|
2015-03-07 16:30:25 -08:00
|
|
|
c.extendTranslationCoverageProperties ArticleSchema
|
2014-04-12 14:16:41 +05:30
|
|
|
c.extendPatchableProperties ArticleSchema
|
2014-04-12 14:05:56 +05:30
|
|
|
|
|
|
|
module.exports = ArticleSchema
|