Skip to content

Commit

Permalink
Corrections to the response format of `/_matrix/identity/v2/store-inv…
Browse files Browse the repository at this point in the history
…ite` (#1486)

This has been wrong since the dawn of time.

Fixes #495
  • Loading branch information
richvdh committed May 3, 2023
1 parent cafb453 commit 6150f71
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Corrections to the response format of `/_matrix/identity/v2/store-invite`.
41 changes: 30 additions & 11 deletions data/api/identity/v2_store_invite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,39 @@ paths:
A list of [server's long-term public key, generated ephemeral
public key].
items:
type: string
type: object
title: PublicKey
properties:
public_key:
type: string
description: |
The public key, encoded using [unpadded Base64](/appendices/#unpadded-base64).
key_validity_url:
type: string
description: |
The URI of an endpoint where the validity of this key can be checked
by passing it as a `public_key` query parameter. See
[key management](/identity-service-api/#key-management).
required: ['public_key', 'key_validity_url']
display_name:
type: string
description: The generated (redacted) display_name.
description: The generated (redacted) display name.
required: ['token', 'public_keys', 'display_name']
example:
application/json: {
"token": "sometoken",
"public_keys": [
"serverpublickey",
"ephemeralpublickey"
],
"display_name": "f...@b..."
}
examples:
application/json: {
"token": "sometoken",
"public_keys": [
{
"public_key": "serverPublicKeyBase64",
"key_validity_url": "https://example.com/_matrix/identity/v2/pubkey/isvalid"
},
{
"public_key": "ephemeralPublicKeyBase64",
"key_validity_url": "https://example.com/_matrix/identity/v2/pubkey/ephemeral/isvalid"
}
],
"display_name": "f...@b..."
}
400:
description: |
An error has occurred.
Expand Down

0 comments on commit 6150f71

Please sign in to comment.