diff options
Diffstat (limited to 'docs/openapi.yaml')
| -rw-r--r-- | docs/openapi.yaml | 11 |
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. |
