2021-01-26 22:38:46 +08:00
|
|
|
{
|
|
|
|
"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"
|
2022-09-20 17:28:17 +08:00
|
|
|
},
|
|
|
|
"dominant_color": {
|
|
|
|
"type": ["string", "null"]
|
2024-10-18 16:55:14 +08:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
2021-01-26 22:38:46 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"id",
|
|
|
|
"url",
|
|
|
|
"original_filename",
|
|
|
|
"filesize",
|
|
|
|
"width",
|
|
|
|
"height",
|
|
|
|
"thumbnail_width",
|
|
|
|
"thumbnail_height",
|
|
|
|
"extension",
|
|
|
|
"short_url",
|
|
|
|
"short_path",
|
|
|
|
"retain_hours",
|
|
|
|
"human_filesize"
|
|
|
|
]
|
|
|
|
}
|