mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-21 13:33:44 +01:00
Alphabetise avatar_url and displayname and remove redundant descriptions on displayname
This commit is contained in:
parent
992cf9dc35
commit
3311b084bf
|
|
@ -46,26 +46,25 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["displayname", "avatar_url"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
description: Must follow the [Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
description: Must follow the [Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
requestBody:
|
requestBody:
|
||||||
description: >
|
description: >
|
||||||
The new profile field value. The JSON object must contain the "key_name" specified in the URL.
|
The new profile field value. The JSON object must contain the "key_name" specified in the URL.
|
||||||
For custom keys, the value may be any valid JSON type. However, if the key is "displayname"
|
For custom keys, the value may be any valid JSON type. However, if the key is "displayname"
|
||||||
or "avatar_url", the value MUST be a string as per the stabilised spec requirements.
|
or "avatar_url", the value MUST be a string.
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
displayname:
|
|
||||||
type: string
|
|
||||||
description: "Spec-conformant displayname value; must be a string."
|
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
description: "Spec-conformant avatar URL value (MXC URI format); must be a string."
|
description: "Avatar URL value (MXC URI format)."
|
||||||
|
displayname:
|
||||||
|
type: string
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
description: "Any additional profile field value; may be any valid JSON type."
|
description: "Any additional profile field value; may be any valid JSON type."
|
||||||
example: { "displayname": "Alice Wonderland" }
|
example: { "displayname": "Alice Wonderland" }
|
||||||
|
|
@ -146,7 +145,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["displayname", "avatar_url"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
description: Must follow the
|
description: Must follow the
|
||||||
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
|
|
@ -158,12 +157,11 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
displayname:
|
|
||||||
type: string
|
|
||||||
description: "Spec-conformant displayname value; must be a string."
|
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
description: "Spec-conformant avatar URL value (MXC URI format); must be a string."
|
description: "Avatar URL value (MXC URI format)."
|
||||||
|
displayname:
|
||||||
|
type: string
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
description: "Any additional profile field value; may be any valid JSON type."
|
description: "Any additional profile field value; may be any valid JSON type."
|
||||||
examples:
|
examples:
|
||||||
|
|
@ -217,7 +215,7 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
oneOf:
|
||||||
- type: string
|
- type: string
|
||||||
enum: ["displayname", "avatar_url"]
|
enum: ["avatar_url", "displayname"]
|
||||||
- type: string
|
- type: string
|
||||||
description: Must follow the
|
description: Must follow the
|
||||||
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
[Common Namespaced Identifier Grammar](/appendices/#common-namespaced-identifier-grammar).
|
||||||
|
|
@ -297,10 +295,9 @@ paths:
|
||||||
avatar_url:
|
avatar_url:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
description: "Spec-conformant avatar URL value (MXC URI format); must be a string."
|
description: "Avatar URL value (MXC URI format)."
|
||||||
displayname:
|
displayname:
|
||||||
type: string
|
type: string
|
||||||
description: "Spec-conformant displayname value; must be a string."
|
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
description: "Any additional profile field value; may be any valid JSON type."
|
description: "Any additional profile field value; may be any valid JSON type."
|
||||||
examples:
|
examples:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue