mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-08-04 15:07:47 +02:00
Compare commits
3 commits
da8b1f5be5
...
9b6b33378d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b6b33378d | ||
|
|
4c2bb5aae1 | ||
|
|
b47858b981 |
|
|
@ -0,0 +1 @@
|
||||||
|
Use MXC URI type for all user `avatar_url` fields. Contributed by @networkException.
|
||||||
|
|
@ -54,7 +54,8 @@ properties:
|
||||||
example: true
|
example: true
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
description: The URL for the room's avatar, if one is set.
|
description: The URL for the room's avatar, if one is set.
|
||||||
example: "mxc://example.org/abcdef"
|
example: "mxc://example.org/abcdef"
|
||||||
join_rule:
|
join_rule:
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,8 @@ paths:
|
||||||
description: The display name of the user this object is representing.
|
description: The display name of the user this object is representing.
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
description: The avatar of the user this object is representing, as an [`mxc://`
|
description: The avatar of the user this object is representing, as an [`mxc://`
|
||||||
URI](/client-server-api/#matrix-content-mxc-uris).
|
URI](/client-server-api/#matrix-content-mxc-uris).
|
||||||
description: A map from user ID to a RoomMember object.
|
description: A map from user ID to a RoomMember object.
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,8 @@ paths:
|
||||||
title: Display name
|
title: Display name
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
title: Avatar Url
|
title: Avatar Url
|
||||||
events_before:
|
events_before:
|
||||||
type: array
|
type: array
|
||||||
|
|
|
||||||
|
|
@ -82,6 +82,18 @@ paths:
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: {}
|
value: {}
|
||||||
|
"413":
|
||||||
|
description: At least one device message is too large to fit in a single EDU.
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: definitions/errors/error.yaml
|
||||||
|
examples:
|
||||||
|
response:
|
||||||
|
value: {
|
||||||
|
"errcode": "M_TOO_LARGE",
|
||||||
|
"error": "device message to @test:example.com too large to fit in a single EDU"
|
||||||
|
}
|
||||||
tags:
|
tags:
|
||||||
- Send-to-Device messaging
|
- Send-to-Device messaging
|
||||||
servers:
|
servers:
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,8 @@ paths:
|
||||||
description: The display name of the user, if one exists.
|
description: The display name of the user, if one exists.
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
example: mxc://bar.com/foo
|
example: mxc://bar.com/foo
|
||||||
description: The avatar url, as an [`mxc://`
|
description: The avatar url, as an [`mxc://`
|
||||||
URI](/client-server-api/#matrix-content-mxc-uris),
|
URI](/client-server-api/#matrix-content-mxc-uris),
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,8 @@ paths:
|
||||||
example: John Doe
|
example: John Doe
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
description: |-
|
description: |-
|
||||||
The avatar URL for the user's avatar. MUST either be omitted or set to
|
The avatar URL for the user's avatar. MUST either be omitted or set to
|
||||||
`null` if the user does not have an avatar set.
|
`null` if the user does not have an avatar set.
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@
|
||||||
"properties": {
|
"properties": {
|
||||||
"avatar_url": {
|
"avatar_url": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"format": "mx-mxc-uri",
|
||||||
|
"pattern": "^mxc:\\/\\/",
|
||||||
"description": "The current avatar URL for this user, if any."
|
"description": "The current avatar URL for this user, if any."
|
||||||
},
|
},
|
||||||
"displayname": {
|
"displayname": {
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,8 @@ properties:
|
||||||
avatar_url:
|
avatar_url:
|
||||||
description: 'The avatar URL for this user, if any.'
|
description: 'The avatar URL for this user, if any.'
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: mx-mxc-uri
|
||||||
|
pattern: "^mxc:\\/\\/"
|
||||||
displayname:
|
displayname:
|
||||||
description: 'The display name for this user, if any.'
|
description: 'The display name for this user, if any.'
|
||||||
type:
|
type:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue