Fix POST _matrix/federation/v1/user/keys/claim response schema (#1351)

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

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2022-11-22 16:50:28 +01:00 committed by GitHub
parent b2c4abf567
commit dfc8a2e184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 17 deletions

View file

@ -0,0 +1 @@
Fix `POST _matrix/federation/v1/user/keys/claim` response schema.

View file

@ -76,29 +76,32 @@ paths:
See the [Client-Server Key Algorithms](/client-server-api/#key-algorithms) section for more information on See the [Client-Server Key Algorithms](/client-server-api/#key-algorithms) section for more information on
the Key Object format. the Key Object format.
# User
additionalProperties: additionalProperties:
type: object type: object
# Device
additionalProperties: additionalProperties:
type: type: object
- string # Key
- type: object additionalProperties:
title: KeyObject type: object
properties: title: KeyObject
key: properties:
type: string key:
description: The key, encoded using unpadded base64. type: string
signatures: description: The key, encoded using unpadded base64.
signatures:
type: object
title: Signatures
additionalProperties:
type: object type: object
title: Signatures
additionalProperties: additionalProperties:
type: object type: string
additionalProperties: description: |-
type: string Signature of the key object.
description: |-
Signature of the key object.
The signature is calculated using the process described at [Signing JSON](/appendices/#signing-json). The signature is calculated using the process described at [Signing JSON](/appendices/#signing-json).
required: ['key', 'signatures'] required: ['key', 'signatures']
example: { example: {
"@alice:example.com": { "@alice:example.com": {
"JLAFKJWSCS": { "JLAFKJWSCS": {