# 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.
15 lines
301 B
Text
15 lines
301 B
Text
{
|
|
"$ref": "core/room_event.json",
|
|
"type": "m.room.message",
|
|
"content": {
|
|
"body": "filename.jpg",
|
|
"info": {
|
|
"h": 398,
|
|
"w": 394,
|
|
"mimetype": "image/jpeg",
|
|
"size": 31037
|
|
},
|
|
"url": "mxc://example.org/JWEIFJgwEIhweiWJE",
|
|
"msgtype": "m.image"
|
|
}
|
|
}
|