mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-29 12:08:37 +01:00
# is reserved by the swagger validator as a way to include partial content from a JSON object (eg: "#/path" would include {"test": true} from the object {"path":{"test":true}}). Instead of trying to convince the validator that it is wrong, we'll just use a different character.
Note that our rendering tools do not care about #-style references to objects. It's still somewhat worth changing the character though.
24 lines
524 B
Plaintext
24 lines
524 B
Plaintext
{
|
|
"$ref": "core/room_event.json",
|
|
"type": "m.room.message",
|
|
"content": {
|
|
"body": "Gangnam Style",
|
|
"url": "mxc://example.org/a526eYUSFFxlgbQYZmo442",
|
|
"info": {
|
|
"thumbnail_url": "mxc://example.org/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"
|
|
}
|
|
}
|