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