appview/lexicons/me/woach/content/media.json

50 lines
1.2 KiB
JSON

{
"lexicon": 1,
"id": "me.woach.content.media",
"defs": {
"main": {
"type": "object",
"key": "nsid",
"required": [ "titles", "durationData", "lastUpdated" ],
"properties": {
"titles": {
"type": "array",
"minLength": 1,
"items": {
"type": "ref",
"ref": "me.woach.content.title"
}
},
"durationData": {
"type": "union",
"refs": [
"me.woach.content.media#television",
"me.woach.content.media#book"
]
},
"posterImage": {
"type": "blob",
"accept": ["image/png", "image/jpeg"],
"maxSize": 1000000
},
"lastUpdated": {
"type": "string",
"format": "datetime",
"description": "Client-declared timestamp for when this activity was last updated"
}
}
},
"television": {
"type": "object",
"properties": {
"episodes": { "type": "integer", "minimum": 0}
}
},
"book": {
"type": "object",
"properties": {
"chapters": { "type": "integer", "minimum": 0}
}
}
}
}