mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-15 10:33:43 +01:00
As a side effect, I got rid of all of the horrible symlinks and just put in all of the proper relative paths. Because the horrible symlinks were horrible.
65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
{
|
|
"title": "RoomAvatar",
|
|
"description": "A picture that is associated with the room. This can be displayed alongside the room information.",
|
|
"type": "object",
|
|
"allOf": [{
|
|
"$ref": "core-event-schema/state_event.json"
|
|
}],
|
|
"properties": {
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string",
|
|
"description": "The URL to the image."
|
|
},
|
|
"thumbnail_url": {
|
|
"type": "string",
|
|
"description": "The URL to the thumbnail of the image."
|
|
},
|
|
"thumbnail_info": {
|
|
"type": "object",
|
|
"title": "ImageInfo",
|
|
"description": "Metadata about the image referred to in ``thumbnail_url``.",
|
|
"allOf": [{
|
|
"$ref": "core-event-schema/msgtype_infos/image_info.json"
|
|
}]
|
|
},
|
|
"info": {
|
|
"type": "object",
|
|
"title": "ImageInfo",
|
|
"description": "Metadata about the image referred to in ``url``.",
|
|
"properties": {
|
|
"size": {
|
|
"type": "integer",
|
|
"description": "Size of the image in bytes."
|
|
},
|
|
"w": {
|
|
"type": "integer",
|
|
"description": "The width of the image in pixels."
|
|
},
|
|
"h": {
|
|
"type": "integer",
|
|
"description": "The height of the image in pixels."
|
|
},
|
|
"mimetype": {
|
|
"type": "string",
|
|
"description": "The mimetype of the image, e.g. ``image/jpeg``."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": ["url"]
|
|
},
|
|
"state_key": {
|
|
"type": "string",
|
|
"description": "A zero-length string.",
|
|
"pattern": "^$"
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["m.room.avatar"]
|
|
}
|
|
}
|
|
}
|