From c11324bef3e93aac3748c6bb62c4a60872ea3f62 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 26 Oct 2026 22:57:47 +0100 Subject: peers in /peers is an attrset --- docs/openapi.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'docs') 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. -- cgit v1.3.1