Skip to content

Commit 7c407e9

Browse files
turt2liverichvdh
authored andcommitted
Merge pull request #3238 from lukaslihotzki/required-bodies
OpenAPI: require all bodies in client-server
2 parents 0ca305c + ca7ae1d commit 7c407e9

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify that all request bodies are required.

data/api/client-server/receipts.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ paths:
6161
description: |-
6262
Extra receipt information to attach to `content` if any. The
6363
server will automatically set the `ts` field.
64+
required: true
6465
schema:
6566
type: object
6667
example: {

data/api/client-server/report_content.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ paths:
4949
x-example: "$something:example.org"
5050
- in: body
5151
name: body
52+
required: true
5253
schema:
5354
type: object
5455
example: {

data/api/client-server/room_send.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ paths:
6565
x-example: "35"
6666
- in: body
6767
name: body
68+
required: true
6869
schema:
6970
type: object
7071
example: {

data/api/client-server/room_state.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ paths:
7474
x-example: "@alice:example.com"
7575
- in: body
7676
name: body
77+
required: true
7778
schema:
7879
type: object
7980
example: {

data/api/client-server/users.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ paths:
4747
parameters:
4848
- in: body
4949
name: body
50+
required: true
5051
schema:
5152
type: object
5253
properties:

0 commit comments

Comments
 (0)