Debian Codegraph @

includes/Rest/Handler/Schema/MediaLinks.json

raw symbols SCIP
1 {
2 "description": "Media links for the page",
3 "required": [
4 "files"
5 ],
6 "properties": {
7 "files": {
8 "type": "array",
9 "description": "Array of media used on the page",
10 "items": {
11 "type": "object",
12 "required": [
13 "title",
14 "file_description_url",
15 "latest",
16 "preferred",
17 "original"
18 ],
19 "properties": {
20 "title": {
21 "type": "string",
22 "description": "File title"
23 },
24 "file_description_url": {
25 "type": "string",
26 "description": "URL for the page describing the file, including license information and other metadata"
27 },
28 "latest": {
29 "type": "object",
30 "nullable": true,
31 "description": "Information about the latest revision to the file",
32 "properties": {
33 "timestamp": {
34 "type": "string",
35 "format": "date-time",
36 "description": "Last modified timestamp in ISO 8601 format"
37 },
38 "user": {
39 "type": "object",
40 "description": "Information about the user who uploaded the file",
41 "properties": {
42 "id": {
43 "type": "integer",
44 "nullable": true,
45 "description": "User identifier"
46 },
47 "name": {
48 "type": "string",
49 "nullable": true,
50 "description": "Username"
51 }
52 },
53 "required": [
54 "id",
55 "name"
56 ]
57 }
58 },
59 "required": [
60 "timestamp",
61 "user"
62 ]
63 },
64 "preferred": {
65 "type": "object",
66 "nullable": true,
67 "description": "Information about the file's preferred preview format, original format, and thumbnail format",
68 "properties": {
69 "mediatype": {
70 "type": "string",
71 "enum": [
72 "BITMAP",
73 "DRAWING",
74 "AUDIO",
75 "VIDEO",
76 "MULTIMEDIA",
77 "UNKNOWN",
78 "OFFICE",
79 "TEXT",
80 "EXECUTABLE",
81 "ARCHIVE",
82 "3D"
83 ],
84 "description": "The file type"
85 },
86 "size": {
87 "type": "integer",
88 "nullable": true,
89 "description": "File size in bytes or null if not available"
90 },
91 "width": {
92 "type": "integer",
93 "nullable": true,
94 "description": "Maximum recommended image width in pixels or null if not available"
95 },
96 "height": {
97 "type": "integer",
98 "nullable": true,
99 "description": "Maximum recommended image height in pixels or null if not available"
100 },
101 "duration": {
102 "type": "number",
103 "nullable": true,
104 "description": "The length of the video, audio, or multimedia file or null for other media types"
105 },
106 "url": {
107 "type": "string",
108 "format": "uri",
109 "description": "URL to download the file"
110 }
111 },
112 "required": [
113 "mediatype",
114 "size",
115 "width",
116 "height",
117 "duration",
118 "url"
119 ]
120 },
121 "original": {
122 "type": "object",
123 "nullable": true,
124 "description": "Original file details",
125 "properties": {
126 "mediatype": {
127 "type": "string",
128 "enum": [
129 "BITMAP",
130 "DRAWING",
131 "AUDIO",
132 "VIDEO",
133 "MULTIMEDIA",
134 "UNKNOWN",
135 "OFFICE",
136 "TEXT",
137 "EXECUTABLE",
138 "ARCHIVE",
139 "3D"
140 ],
141 "description": "The file type"
142 },
143 "size": {
144 "type": "integer",
145 "nullable": true,
146 "description": "File size in bytes or null if not available"
147 },
148 "width": {
149 "type": "integer",
150 "nullable": true,
151 "description": "Maximum recommended image width in pixels or null if not available"
152 },
153 "height": {
154 "type": "integer",
155 "nullable": true,
156 "description": "Maximum recommended image height in pixels or null if not available"
157 },
158 "duration": {
159 "type": "number",
160 "nullable": true,
161 "description": "The length of the video, audio, or multimedia file or null for other media types"
162 },
163 "url": {
164 "type": "string",
165 "format": "uri",
166 "description": "URL to download the file"
167 }
168 },
169 "required": [
170 "mediatype",
171 "size",
172 "width",
173 "height",
174 "duration",
175 "url"
176 ]
177 }
178 }
179 }
180 }
181 }
182 }