aboutsummaryrefslogtreecommitdiffstats
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
commit64d3c85b3d6cf7693ad30af57331cbd9c9a0b4eb (patch)
treed05b1addea4c63fa4754114822ea8ccceb44eb19 /docs
parentc5ac1b649c343899286dccf87b5942c4ea7a2937 (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.