Merge pull request #291 from gergelypolonkai/room-avatar-image-info

Update m.room.avatar schema so it references image_info in info
pull/301/head
Kegsay 9 years ago
commit dd6dfa7635

@ -29,24 +29,9 @@
"type": "object", "type": "object",
"title": "ImageInfo", "title": "ImageInfo",
"description": "Metadata about the image referred to in ``url``.", "description": "Metadata about the image referred to in ``url``.",
"properties": { "allOf": [{
"size": { "$ref": "core-event-schema/msgtype_infos/image_info.yaml"
"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"] "required": ["url"]

Loading…
Cancel
Save