Skip to content

Commit

Permalink
Add missing references in capabilities table (#1897)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Johennes committed Jul 10, 2024
1 parent b1349dd commit 40d5e48
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1897.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing references to `m.set_displayname`, `m.set_avatar_url` and `m.3pid_changes` in capabilities table.
31 changes: 22 additions & 9 deletions data/api/client-server/capabilities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,8 @@ paths:
type: object
properties:
m.change_password:
type: object
$ref: '#/components/schemas/booleanCapability'
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:
type: object
description: The room versions the server supports.
Expand All @@ -78,6 +70,16 @@ paths:
required:
- default
- 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:
response:
value: {
Expand Down Expand Up @@ -125,3 +127,14 @@ components:
$ref: definitions/security.yaml#/accessTokenQuery
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

0 comments on commit 40d5e48

Please sign in to comment.