This commit adds support for event schema examples to have references to help reduce the chance of fields being forgotten. This also helps reduce duplication of fields, allowing for a more consistent spec that uses the same values everywhere. This also removes both `unsigned` and `age` from the examples as per: * https://github.com/matrix-org/matrix-doc/issues/1524 * https://github.com/matrix-org/matrix-doc/issues/630 Finally, this replaces "localhost" in the examples with an example domain. This is really just a nitpick thing on my part where seeing a "real world" domain is preferred. Fixes https://github.com/matrix-org/matrix-doc/issues/1524 Fixes https://github.com/matrix-org/matrix-doc/issues/630 Step towards https://github.com/matrix-org/matrix-doc/issues/1530
23 lines
522 B
Text
23 lines
522 B
Text
{
|
|
"$ref": "core/room_event.json",
|
|
"type": "m.room.message",
|
|
"content": {
|
|
"body": "Gangnam Style",
|
|
"url": "mxc://domain.com/a526eYUSFFxlgbQYZmo442",
|
|
"info": {
|
|
"thumbnail_url": "mxc://domain.com/FHyPlCeYUSFFxlgbQYZmoEoe",
|
|
"thumbnail_info": {
|
|
"mimetype": "image/jpeg",
|
|
"size": 46144,
|
|
"w": 300,
|
|
"h": 300
|
|
},
|
|
"w": 480,
|
|
"h": 320,
|
|
"duration": 2140786,
|
|
"size": 1563685,
|
|
"mimetype": "video/mp4"
|
|
},
|
|
"msgtype": "m.video"
|
|
}
|
|
}
|