Skip to content

Commit

Permalink
Fix POST _matrix/federation/v1/user/keys/claim response schema (mat…
Browse files Browse the repository at this point in the history
…rix-org#1351)

The syntax was not compliant with the Swagger spec.
It also lacked one level of nesting.

Signed-off-by: Kévin Commaille <[email protected]>
  • Loading branch information
zecakeh authored and clokep committed May 3, 2023
1 parent 9cf775f commit 1cbffce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/1351.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix `POST _matrix/federation/v1/user/keys/claim` response schema.
37 changes: 20 additions & 17 deletions data/api/server-server/user_keys.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,29 +76,32 @@ paths:
See the [Client-Server Key Algorithms](/client-server-api/#key-algorithms) section for more information on
the Key Object format.
# User
additionalProperties:
type: object
# Device
additionalProperties:
type:
- string
- type: object
title: KeyObject
properties:
key:
type: string
description: The key, encoded using unpadded base64.
signatures:
type: object
# Key
additionalProperties:
type: object
title: KeyObject
properties:
key:
type: string
description: The key, encoded using unpadded base64.
signatures:
type: object
title: Signatures
additionalProperties:
type: object
title: Signatures
additionalProperties:
type: object
additionalProperties:
type: string
description: |-
Signature of the key object.
type: string
description: |-
Signature of the key object.
The signature is calculated using the process described at [Signing JSON](/appendices/#signing-json).
required: ['key', 'signatures']
The signature is calculated using the process described at [Signing JSON](/appendices/#signing-json).
required: ['key', 'signatures']
example: {
"@alice:example.com": {
"JLAFKJWSCS": {
Expand Down

0 comments on commit 1cbffce

Please sign in to comment.