Compare commits

..

1 commit

Author SHA1 Message Date
Mathieu Velten da8b1f5be5
Merge b47858b981 into f9dec5dc92 2026-07-16 20:38:46 +04:00
8 changed files with 5 additions and 15 deletions

View file

@ -1 +0,0 @@
Use MXC URI type for all user `avatar_url` fields. Contributed by @networkException.

View file

@ -54,8 +54,7 @@ properties:
example: true example: true
avatar_url: avatar_url:
type: string type: string
format: mx-mxc-uri format: 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:

View file

@ -340,8 +340,7 @@ 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: mx-mxc-uri format: 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.

View file

@ -238,8 +238,7 @@ paths:
title: Display name title: Display name
avatar_url: avatar_url:
type: string type: string
format: mx-mxc-uri format: uri
pattern: "^mxc:\\/\\/"
title: Avatar Url title: Avatar Url
events_before: events_before:
type: array type: array

View file

@ -90,8 +90,7 @@ 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: mx-mxc-uri format: 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),

View file

@ -172,8 +172,6 @@ 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.

View file

@ -12,8 +12,6 @@
"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": {

View file

@ -53,8 +53,7 @@ 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: mx-mxc-uri format: 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: