From c72d30513e961c9bcd94b80bd99b8a343f2b8ecf Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 25 May 2020 19:08:17 +0200 Subject: [PATCH] c2s: Add required: true to request bodies --- api/client-server/administrative_contact.yaml | 5 +++++ api/client-server/create_room.yaml | 1 + api/client-server/device_management.yaml | 2 ++ api/client-server/joining.yaml | 2 ++ api/client-server/keys.yaml | 3 +++ api/client-server/login.yaml | 1 + api/client-server/redaction.yaml | 1 + api/client-server/registration.yaml | 3 +++ api/client-server/search.yaml | 1 + 9 files changed, 19 insertions(+) diff --git a/api/client-server/administrative_contact.yaml b/api/client-server/administrative_contact.yaml index fc231b60..cebfb274 100644 --- a/api/client-server/administrative_contact.yaml +++ b/api/client-server/administrative_contact.yaml @@ -108,6 +108,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: @@ -195,6 +196,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: @@ -247,6 +249,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: @@ -299,6 +302,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: @@ -363,6 +367,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: diff --git a/api/client-server/create_room.yaml b/api/client-server/create_room.yaml index 2487707e..2be8532d 100644 --- a/api/client-server/create_room.yaml +++ b/api/client-server/create_room.yaml @@ -74,6 +74,7 @@ paths: - in: body name: body description: The desired room configuration. + required: true schema: type: object example: { diff --git a/api/client-server/device_management.yaml b/api/client-server/device_management.yaml index 75ee9e44..8039d71f 100644 --- a/api/client-server/device_management.yaml +++ b/api/client-server/device_management.yaml @@ -152,6 +152,7 @@ paths: x-example: "QBUAZIFURK" - in: body name: body + required: true schema: type: object properties: @@ -190,6 +191,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: diff --git a/api/client-server/joining.yaml b/api/client-server/joining.yaml index 4da86022..c5781806 100644 --- a/api/client-server/joining.yaml +++ b/api/client-server/joining.yaml @@ -53,6 +53,7 @@ paths: x-example: "!d41d8cd:matrix.org" - in: body name: third_party_signed + required: true description: |- If supplied, the homeserver must verify that it matches a pending ``m.room.third_party_invite`` event in the room, and perform @@ -134,6 +135,7 @@ paths: x-example: ["matrix.org", "elsewhere.ca"] - in: body name: third_party_signed + required: true schema: type: object properties: diff --git a/api/client-server/keys.yaml b/api/client-server/keys.yaml index 8c4a65f7..429d47ef 100644 --- a/api/client-server/keys.yaml +++ b/api/client-server/keys.yaml @@ -41,6 +41,7 @@ paths: name: keys description: |- The keys to be published + required: true schema: type: object properties: @@ -133,6 +134,7 @@ paths: name: query description: |- Query defining the keys to be downloaded + required: true schema: type: object properties: @@ -250,6 +252,7 @@ paths: name: query description: |- Query defining the keys to be claimed + required: true schema: type: object properties: diff --git a/api/client-server/login.yaml b/api/client-server/login.yaml index f6c92638..fac9361c 100644 --- a/api/client-server/login.yaml +++ b/api/client-server/login.yaml @@ -82,6 +82,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object example: { diff --git a/api/client-server/redaction.yaml b/api/client-server/redaction.yaml index 907b1d16..811773d6 100644 --- a/api/client-server/redaction.yaml +++ b/api/client-server/redaction.yaml @@ -65,6 +65,7 @@ paths: x-example: "37" - in: body name: body + required: true schema: type: object example: { diff --git a/api/client-server/registration.yaml b/api/client-server/registration.yaml index 8114299e..f57bd88c 100644 --- a/api/client-server/registration.yaml +++ b/api/client-server/registration.yaml @@ -84,6 +84,7 @@ paths: description: The kind of account to register. Defaults to ``user``. - in: body name: body + required: true schema: type: object properties: @@ -336,6 +337,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: @@ -507,6 +509,7 @@ paths: parameters: - in: body name: body + required: true schema: type: object properties: diff --git a/api/client-server/search.yaml b/api/client-server/search.yaml index 4fe72d5b..2d30ebef 100644 --- a/api/client-server/search.yaml +++ b/api/client-server/search.yaml @@ -45,6 +45,7 @@ paths: x-example: "YWxsCgpOb25lLDM1ODcwOA" - in: body name: body + required: true schema: type: object example: {