summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-26 22:57:47 +0100
committertv <tv@krebsco.de>2026-10-26 22:57:47 +0100
commitc11324bef3e93aac3748c6bb62c4a60872ea3f62 (patch)
treebda81563aad5877f5f4fa3b8bc8bcac92ed60658 /docs
parent282eda719a303b4f5ae8ae05f0c11cac7b4a52ea (diff)
peers in /peers is an attrset
Diffstat (limited to 'docs')
-rw-r--r--docs/openapi.yaml11
1 files changed, 5 insertions, 6 deletions
diff --git a/docs/openapi.yaml b/docs/openapi.yaml
index ae28c91..bfb297d 100644
--- a/docs/openapi.yaml
+++ b/docs/openapi.yaml
@@ -210,7 +210,7 @@ paths:
summary: List known peers
responses:
'200':
- description: Peers, sorted by public key.
+ description: Peers, by public key.
content:
application/json:
schema:
@@ -1080,16 +1080,15 @@ components:
type: integer
description: 'Heads of the local document (more than one: concurrent changes not yet merged).'
peers:
- type: array
- items:
+ type: object
+ description: By public key.
+ additionalProperties:
$ref: '#/components/schemas/Peer'
Peer:
type: object
- required: [publicKey, status, handshakeComplete, hasPendingDelivery, neighbour, traffic, incidents]
+ required: [status, handshakeComplete, hasPendingDelivery, neighbour, traffic, incidents]
properties:
- publicKey:
- type: string
alias:
type: [string, 'null']
description: The name the peer gave itself (`--alias`); not unique.