mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-10 21:44:11 +01:00
Attempt to describe variable payload content
This commit is contained in:
parent
d8cc250d20
commit
37b1362bc1
|
|
@ -53,16 +53,16 @@ paths:
|
||||||
requestBody:
|
requestBody:
|
||||||
description:
|
description:
|
||||||
A JSON object that must contain the `keyName` specified in the URL.
|
A JSON object that must contain the `keyName` specified in the URL.
|
||||||
For custom keys, the value may be any valid JSON type,
|
For custom keys, the value may be any valid JSON type, but if the key is
|
||||||
but if the key is `avatar_url` or `displayname`, the value MUST be a string.
|
`avatar_url` or `displayname`, the value MUST be a string.
|
||||||
required: true
|
required: true
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
minProperties: 1
|
||||||
"<keyName>":
|
additionalProperties:
|
||||||
description: The field value to set; may be any valid JSON type.
|
description: The field value to set; may be any valid JSON type. For `avatar_url` and `displayname`, the value MUST be a string.
|
||||||
example: { "displayname": "Alice Wonderland" }
|
example: { "displayname": "Alice Wonderland" }
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
|
@ -148,10 +148,9 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
minProperties: 1
|
||||||
"<keyName>":
|
additionalProperties:
|
||||||
description: The field value to set; may be any valid JSON type.
|
description: The profile field value; may be any valid JSON type.
|
||||||
additionalProperties: false
|
|
||||||
examples:
|
examples:
|
||||||
response:
|
response:
|
||||||
value: { "displayname": "Alice" }
|
value: { "displayname": "Alice" }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue