Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/2073.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deduplicate the definition of `RoomKeysUpdateResponse`.
122 changes: 26 additions & 96 deletions data/api/client-server/key_backup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,22 +438,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"403":
description: |-
The version specified does not match the current backup version.
Expand Down Expand Up @@ -571,22 +556,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"404":
description: The backup was not found.
content:
Expand Down Expand Up @@ -644,22 +614,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"403":
description: |-
The version specified does not match the current backup version.
Expand Down Expand Up @@ -778,22 +733,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"404":
description: The backup was not found.
content:
Expand Down Expand Up @@ -866,22 +806,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"403":
description: |-
The version specified does not match the current backup version.
Expand Down Expand Up @@ -1007,22 +932,7 @@ paths:
content:
application/json:
schema:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.
See `GET /room_keys/version/{version}` for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
$ref: "#/components/schemas/RoomKeysUpdateResponse"
"404":
description: The backup was not found.
content:
Expand Down Expand Up @@ -1056,6 +966,26 @@ servers:
basePath:
default: /_matrix/client/v3
components:
schemas:
RoomKeysUpdateResponse:
type: object
title: RoomKeysUpdateResponse
properties:
etag:
description: |-
The new etag value representing stored keys in the backup.

See [`GET /room_keys/version/{version}`](client-server-api/#get_matrixclientv3room_keysversionversion)
for more details.
type: string
example: abcdefg
count:
description: The number of keys stored in the backup
type: integer
example: 10
required:
- etag
- count
securitySchemes:
accessTokenQuery:
$ref: definitions/security.yaml#/accessTokenQuery
Expand Down