From 8ff1c26ef22449fad5526a8861304a88826ae48d Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Tue, 5 May 2020 17:28:54 -0400 Subject: [PATCH] fix indentation --- .../definitions/key_backup_data.yaml | 8 +- api/client-server/key_backup.yaml | 142 +++++++++--------- 2 files changed, 75 insertions(+), 75 deletions(-) diff --git a/api/client-server/definitions/key_backup_data.yaml b/api/client-server/definitions/key_backup_data.yaml index 8f8de999..6a3b4042 100644 --- a/api/client-server/definitions/key_backup_data.yaml +++ b/api/client-server/definitions/key_backup_data.yaml @@ -39,10 +39,10 @@ properties: expected format of the data. type: object example: { - "ephemeral": "base64+ephemeral+key", - "ciphertext": "base64+ciphertext+of+JSON+data", - "mac": "base64+mac+of+ciphertext" - } + "ephemeral": "base64+ephemeral+key", + "ciphertext": "base64+ciphertext+of+JSON+data", + "mac": "base64+mac+of+ciphertext" + } required: - first_message_index - forwarded_count diff --git a/api/client-server/key_backup.yaml b/api/client-server/key_backup.yaml index 543a1992..bdca769e 100644 --- a/api/client-server/key_backup.yaml +++ b/api/client-server/key_backup.yaml @@ -54,13 +54,13 @@ paths: expected format of the data. type: object example: { - "public_key": "abcdefg", - "signatures": { - "@alice:example.org": { - "ed25519:deviceid": "signature" - } + "public_key": "abcdefg", + "signatures": { + "@alice:example.org": { + "ed25519:deviceid": "signature" } } + } required: - algorithm - auth_data @@ -115,13 +115,13 @@ paths: expected format of the data. type: object example: { - "public_key": "abcdefg", - "signatures": { - "@alice:example.org": { - "ed25519:deviceid": "signature" - } + "public_key": "abcdefg", + "signatures": { + "@alice:example.org": { + "ed25519:deviceid": "signature" } } + } count: description: The number of keys stored in the backup. type: integer @@ -191,13 +191,13 @@ paths: expected format of the data. type: object example: { - "public_key": "abcdefg", - "signatures": { - "@alice:example.org": { - "ed25519:deviceid": "signature" - } + "public_key": "abcdefg", + "signatures": { + "@alice:example.org": { + "ed25519:deviceid": "signature" } } + } version: description: |- The backup version. If present, must be the same as the @@ -283,10 +283,10 @@ paths: field. examples: application/json: { - "errcode": "M_WRONG_ROOM_KEYS_VERSION", - "error": "Wrong backup version.", - "current_version": "42" - } + "errcode": "M_WRONG_ROOM_KEYS_VERSION", + "error": "Wrong backup version.", + "current_version": "42" + } schema: "$ref": "definitions/errors/error.yaml" tags: @@ -327,9 +327,9 @@ paths: description: The key or backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Key not found." - } + "errcode": "M_NOT_FOUND", + "error": "Key not found." + } schema: "$ref": "definitions/errors/error.yaml" delete: @@ -383,9 +383,9 @@ paths: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml" "/room_keys/keys/{roomId}": @@ -424,12 +424,12 @@ paths: allOf: - $ref: "definitions/key_backup_data.yaml" example: { - "sessionid1": { - "ephemeral": "base64+ephemeral+key", - "ciphertext": "base64+ciphertext+of+JSON+data", - "mac": "base64+mac+of+ciphertext" - } + "sessionid1": { + "ephemeral": "base64+ephemeral+key", + "ciphertext": "base64+ciphertext+of+JSON+data", + "mac": "base64+mac+of+ciphertext" } + } responses: 200: description: The update succeeded @@ -467,9 +467,9 @@ paths: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml" tags: @@ -511,20 +511,20 @@ paths: allOf: - $ref: "definitions/key_backup_data.yaml" example: { - "sessionid1": { - "ephemeral": "base64+ephemeral+key", - "ciphertext": "base64+ciphertext+of+JSON+data", - "mac": "base64+mac+of+ciphertext" - } + "sessionid1": { + "ephemeral": "base64+ephemeral+key", + "ciphertext": "base64+ciphertext+of+JSON+data", + "mac": "base64+mac+of+ciphertext" } + } 404: description: |- The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml" delete: @@ -572,9 +572,9 @@ paths: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml" "/room_keys/keys": @@ -609,16 +609,16 @@ paths: allOf: - $ref: "definitions/key_backup_data.yaml" example: { - "!room:example.org": { - "sessions": { - "sessionid1": { - "ephemeral": "base64+ephemeral+key", - "ciphertext": "base64+ciphertext+of+JSON+data", - "mac": "base64+mac+of+ciphertext" - } + "!room:example.org": { + "sessions": { + "sessionid1": { + "ephemeral": "base64+ephemeral+key", + "ciphertext": "base64+ciphertext+of+JSON+data", + "mac": "base64+mac+of+ciphertext" } } } + } responses: 200: description: The update succeeded @@ -645,10 +645,10 @@ paths: field. examples: application/json: { - "errcode": "M_WRONG_ROOM_KEYS_VERSION", - "error": "Wrong backup version.", - "current_version": "42" - } + "errcode": "M_WRONG_ROOM_KEYS_VERSION", + "error": "Wrong backup version.", + "current_version": "42" + } schema: "$ref": "definitions/errors/error.yaml" 404: @@ -656,9 +656,9 @@ paths: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml" tags: @@ -696,23 +696,23 @@ paths: allOf: - $ref: "definitions/key_backup_data.yaml" example: { - "!room:example.org": { - "sessions": { - "sessionid1": { - "ephemeral": "base64+ephemeral+key", - "ciphertext": "base64+ciphertext+of+JSON+data", - "mac": "base64+mac+of+ciphertext" - } + "!room:example.org": { + "sessions": { + "sessionid1": { + "ephemeral": "base64+ephemeral+key", + "ciphertext": "base64+ciphertext+of+JSON+data", + "mac": "base64+mac+of+ciphertext" } } } + } 404: description: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version." - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version." + } schema: "$ref": "definitions/errors/error.yaml" delete: @@ -754,8 +754,8 @@ paths: The backup was not found. examples: application/json: { - "errcode": "M_NOT_FOUND", - "error": "Unknown backup version" - } + "errcode": "M_NOT_FOUND", + "error": "Unknown backup version" + } schema: "$ref": "definitions/errors/error.yaml"