Add missing references in capabilities table (#1897)

* Add missing references in capabilities table

Fixes: #1548
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>

* Add changelog

---------

Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
pull/1908/head
Johannes Marbach 4 months ago committed by GitHub
parent b1349dd06f
commit 40d5e48716
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1 @@
Add missing references to `m.set_displayname`, `m.set_avatar_url` and `m.3pid_changes` in capabilities table.

@ -46,16 +46,8 @@ paths:
type: object type: object
properties: properties:
m.change_password: m.change_password:
type: object $ref: '#/components/schemas/booleanCapability'
description: Capability to indicate if the user can change their password. description: Capability to indicate if the user can change their password.
title: ChangePasswordCapability
properties:
enabled:
type: boolean
description: True if the user can change their password, false otherwise.
example: false
required:
- enabled
m.room_versions: m.room_versions:
type: object type: object
description: The room versions the server supports. description: The room versions the server supports.
@ -78,6 +70,16 @@ paths:
required: required:
- default - default
- available - available
m.set_displayname:
$ref: '#/components/schemas/booleanCapability'
description: Capability to indicate if the user can change their display name.
m.set_avatar_url:
$ref: '#/components/schemas/booleanCapability'
description: Capability to indicate if the user can change their avatar.
m.3pid_changes:
$ref: '#/components/schemas/booleanCapability'
description: Capability to indicate if the user can change 3PID associations
on their account.
examples: examples:
response: response:
value: { value: {
@ -125,3 +127,14 @@ components:
$ref: definitions/security.yaml#/accessTokenQuery $ref: definitions/security.yaml#/accessTokenQuery
accessTokenBearer: accessTokenBearer:
$ref: definitions/security.yaml#/accessTokenBearer $ref: definitions/security.yaml#/accessTokenBearer
schemas:
booleanCapability:
type: object
title: BooleanCapability
properties:
enabled:
type: boolean
description: True if the user can perform the action, false otherwise.
example: false
required:
- enabled

Loading…
Cancel
Save