2014-04-12 13:51:02 -04:00
|
|
|
c = require './../schemas'
|
2014-04-12 04:35:56 -04:00
|
|
|
|
|
|
|
ArticleSchema = c.object()
|
|
|
|
c.extendNamedProperties ArticleSchema # name first
|
|
|
|
|
2014-06-30 22:16:26 -04: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 04:35:56 -04:00
|
|
|
|
2014-04-12 04:46:41 -04:00
|
|
|
c.extendBasicProperties ArticleSchema, 'article'
|
|
|
|
c.extendSearchableProperties ArticleSchema
|
|
|
|
c.extendVersionedProperties ArticleSchema, 'article'
|
|
|
|
c.extendPatchableProperties ArticleSchema
|
2014-04-12 04:35:56 -04:00
|
|
|
|
|
|
|
module.exports = ArticleSchema
|