Page MenuHomePhabricator
Paste P2626

CollaborationKit content model JSON schema
ActivePublic

Authored by Harej on Feb 16 2016, 5:32 PM.
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"display_name": {
"type": "string"
},
"theme": {
"type": "object",
"properties": {
"color": {
"type": "string",
"default": "#6af"
},
"icon": {
"type": "string",
"pattern": "^(Image|File):.*"
}
}
},
"scope": {
"type": "object",
"properties": {
"include_category": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"depth": {
"type": "integer",
"default": 9
}
}
}
},
"include_page": {
"type": "array",
"items": {
"type": "string"
}
},
"exclude_category": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"depth": {
"type": "integer",
"default": 9
}
}
}
},
"exclude_page": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"contents": {
"type": "object",
"properties": {
"intro": {
"type": "string"
},
"modules": {
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string"
},
"standard_module": {
"type": "string"
},
"content_model": {
"type": "string",
"default": "wikitext"
},
"editable": {
"type": "boolean",
"default": true
},
"label": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
}
}
}
}

Event Timeline

Harej changed the title of this paste from untitled to CollaborationKit content model JSON schema.Feb 16 2016, 5:32 PM
Harej updated the paste's language from autodetect to json.
Harej edited the content of this paste. (Show Details)
Harej added subscribers: Isarra, Halfak.