Skip to content

Commit

Permalink
Merge pull request #291 from gergelypolonkai/room-avatar-image-info
Browse files Browse the repository at this point in the history
Update m.room.avatar schema so it references image_info in info
  • Loading branch information
kegsay committed Mar 14, 2016
2 parents 92dfc0b + 6e2b02a commit dd6dfa7
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions event-schemas/schema/m.room.avatar
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,9 @@
"type": "object",
"title": "ImageInfo",
"description": "Metadata about the image referred to in ``url``.",
"properties": {
"size": {
"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``."
}
}
"allOf": [{
"$ref": "core-event-schema/msgtype_infos/image_info.yaml"
}]
}
},
"required": ["url"]
Expand Down

0 comments on commit dd6dfa7

Please sign in to comment.