mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-17 19:43:43 +01:00
Correct PUT/GET payload definitions
This commit is contained in:
parent
9889fe3584
commit
3a5e5555fa
|
|
@ -59,13 +59,8 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
avatar_url:
|
"<keyName>":
|
||||||
type: string
|
description: The field value to set; may be any valid JSON type.
|
||||||
description: Avatar URL value (MXC URI format).
|
|
||||||
displayname:
|
|
||||||
type: string
|
|
||||||
additionalProperties:
|
|
||||||
description: Any additional profile field value; may be any valid JSON type.
|
|
||||||
example: { "displayname": "Alice Wonderland" }
|
example: { "displayname": "Alice Wonderland" }
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
|
@ -150,13 +145,9 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
avatar_url:
|
"<keyName>":
|
||||||
type: string
|
description: The field value to set; may be any valid JSON type.
|
||||||
description: Avatar URL value (MXC URI format).
|
additionalProperties: false
|
||||||
displayname:
|
|
||||||
type: string
|
|
||||||
additionalProperties:
|
|
||||||
description: Any additional profile field value, of any valid JSON type.
|
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: { "displayname": "Alice" }
|
value: { "displayname": "Alice" }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue