0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/spec/requests/api/schemas/json/upload_create_response.json
Blake Erickson 46cdf7b939
DEV: Add video conversion support for chat messages (#36275)
Video conversion was happening already for chat videos, but was not
updating the chat messages. Now chat messages will be updated with the
optimized video.
2025-12-01 12:34:56 -07:00

128 lines
No EOL
2.2 KiB
JSON
Vendored

{
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"original_filename": {
"type": "string"
},
"filesize": {
"type": "integer"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"thumbnail_width": {
"type": "integer"
},
"thumbnail_height": {
"type": "integer"
},
"extension": {
"type": "string"
},
"short_url": {
"type": "string"
},
"short_path": {
"type": "string"
},
"retain_hours": {
"type": [
"string",
"null"
]
},
"human_filesize": {
"type": "string"
},
"dominant_color": {
"type": [
"string",
"null"
]
},
"thumbnail": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"upload_id": {
"type": "integer"
},
"url": {
"type": "string"
},
"extension": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"filesize": {
"type": "integer"
}
}
},
"optimized_video": {
"type": [
"object",
"null"
],
"additionalProperties": false,
"properties": {
"id": {
"type": "integer"
},
"upload_id": {
"type": "integer"
},
"url": {
"type": "string"
},
"extension": {
"type": "string"
},
"filesize": {
"type": "integer"
},
"sha1": {
"type": "string"
},
"original_filename": {
"type": "string"
}
}
}
},
"required": [
"id",
"url",
"original_filename",
"filesize",
"width",
"height",
"thumbnail_width",
"thumbnail_height",
"extension",
"short_url",
"short_path",
"retain_hours",
"human_filesize"
]
}