mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-14 10:03:42 +01:00
Add templating for msgtypes. ImageInfo core type is not referred to for m.image in order for the ImageInfo table to render for it.
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"title": "LocationMessage",
|
|
"description": "This message represents a real-world location.",
|
|
"allOf": [{
|
|
"$ref": "core#/definitions/room_event"
|
|
}],
|
|
"properties": {
|
|
"content": {
|
|
"type": "object",
|
|
"properties": {
|
|
"msgtype": {
|
|
"type": "string",
|
|
"enum": ["m.location"]
|
|
},
|
|
"body": {
|
|
"type": "string",
|
|
"description": "A description of the location e.g. 'Big Ben, London, UK', or some kind of content description for accessibility e.g. 'location attachment'."
|
|
},
|
|
"geo_uri": {
|
|
"type": "string",
|
|
"description": "A geo URI representing this location."
|
|
},
|
|
"thumbnail_url": {
|
|
"type": "string",
|
|
"description": "The URL to a thumbnail of the location being represented."
|
|
},
|
|
"thumbnail_info": {
|
|
"type": "object",
|
|
"title": "ImageInfo",
|
|
"allOf": [{
|
|
"$ref": "core#/definitions/msgtype_infos/image_info"
|
|
}]
|
|
}
|
|
},
|
|
"required": ["msgtype", "body", "geo_uri"]
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["m.room.message"]
|
|
}
|
|
}
|
|
}
|