-
Notifications
You must be signed in to change notification settings - Fork 268
/
video.json
149 lines (149 loc) · 4.31 KB
/
video.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"$schema":"http://json-schema.org/draft-07/schema#",
"description":"The schema for a video record in pyvideo/data",
"properties":{
"alias":{
"description":"[Deprecated] Legacy path to video on pyvideo.org",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"category":{
"description":"[Deprecated] Category of video. This is duplicated by category files and is thus depriciated in video files.",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"copyright_text":{
"description":"Copyright license for video or link to copyright information.",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"description":{
"description":"reStructuredText or plain text description of video",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"duration":{
"description":"Duration of video (in seconds)",
"anyOf": [{"type": "null"}, {"type": "integer"}]
},
"id":{
"description":"ID for video. Must be unique amongst all videos if present.",
"anyOf": [{"type": "null"}, {"type": "integer"}]
},
"language":{
"description":"ISO 639-3 language code of spoken language used in video",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"quality_notes":{
"description":"Notes on quality of video",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"recorded":{
"description":"ISO 8601 Date on which video was recorded (YYYY-MM-DD[Thh:mm:ss[+hh:mm]])",
"anyOf": [
{"type": "null"},
{
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}(T[0-9]{2}:[0-9]{2}:[0-9]{2}([+-][0-9]{2}:[0-9]{2})?)?$"
}]
},
"related_urls":{
"description":"Array of related resources' URLs.",
"items":{
"description":"URL of resource related to video.",
"anyOf": [{
"type": "string",
"format":"uri"
}, {
"type": "object",
"required": ["label", "url"],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"label": {
"type": "string"
}
}
}]
},
"type":"array",
"uniqueItems":true
},
"slug":{
"description":"Web-safe slug for video. Must be unique amongst other videos in same category",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"speakers":{
"description":"Ordered array of speakers in video.",
"items":{
"description":"Speaker name",
"type":"string"
},
"type":"array",
"uniqueItems":true
},
"summary":{
"description":"reStructuredText or plain text description of video",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"tags":{
"description":"Array of tags describing video",
"items":{
"description":"Tag describing video",
"type":"string",
"minLength": 1
},
"type": "array",
"uniqueItems":true
},
"thumbnail_url":{
"description":"URL to thumbnail for video",
"format":"uri",
"anyOf": [{"type": "null"}, {"type": "string"}]
},
"title":{
"description":"Title of video",
"type":"string"
},
"videos":{
"description":"Array of video locations and types",
"items":{
"description":"A video location and type",
"properties":{
"type":{
"description":"File type of video at associated location",
"type":"string"
},
"url":{
"description":"URL for video",
"format":"uri",
"type":"string"
},
"length":{
"description":"[Deprecated] Size of video (in bytes). Please use 'size' instead.",
"anyOf": [{"type": "null"}, {"type": "integer"}]
},
"size":{
"description":"Size of video (in bytes)",
"anyOf": [{"type": "null"}, {"type": "integer"}]
}
},
"required":[
"type",
"url"
],
"type":"object"
},
"type":"array",
"uniqueItems":true,
"minItems": 1
}
},
"required":[
"description",
"speakers",
"recorded",
"title",
"videos"
],
"title":"Video",
"type":"object"
}