From 4cde800ea10df3e34c359a6e878e1252bd81bdba Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Mon, 16 Dec 2019 17:25:20 -0500 Subject: [PATCH] fix validation errors --- api/client-server/key_backup.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/api/client-server/key_backup.yaml b/api/client-server/key_backup.yaml index 5d7050a8..3663731e 100644 --- a/api/client-server/key_backup.yaml +++ b/api/client-server/key_backup.yaml @@ -92,9 +92,9 @@ paths: type: string name: version description: |- - Optional. The backup version to get. If omitted, the current backup - is returned. - required: false + The backup version to get. When an empty string, the trailing slash + is optional, and the current backup is returned. + required: true x-example: "1" responses: 200: @@ -678,12 +678,6 @@ paths: The backup from which to retrieve the keys. If omitted, the keys are retrieved from the current backup. x-example: "1" - - in: path - type: string - name: roomId - description: The ID of the room that the requested key is for. - required: true - x-example: "!roomid:example.org" responses: 200: description: |- @@ -736,12 +730,6 @@ paths: The backup from which to delete the key required: true x-example: "1" - - in: path - type: string - name: roomId - description: The ID of the room that the specified key is for. - required: true - x-example: "!roomid:example.org" responses: 200: description: The update succeeded