Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI: require all bodies in client-server #3238

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/3238.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that all request bodies are required.
1 change: 1 addition & 0 deletions data/api/client-server/receipts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ paths:
description: |-
Extra receipt information to attach to `content` if any. The
server will automatically set the `ts` field.
required: true
schema:
type: object
example: {
Expand Down
1 change: 1 addition & 0 deletions data/api/client-server/report_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ paths:
x-example: "$something:example.org"
- in: body
name: body
required: true
schema:
type: object
example: {
Expand Down
1 change: 1 addition & 0 deletions data/api/client-server/room_send.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ paths:
x-example: "35"
- in: body
name: body
required: true
schema:
type: object
example: {
Expand Down
1 change: 1 addition & 0 deletions data/api/client-server/room_state.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ paths:
x-example: "@alice:example.com"
- in: body
name: body
required: true
schema:
type: object
example: {
Expand Down
1 change: 1 addition & 0 deletions data/api/client-server/users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ paths:
parameters:
- in: body
name: body
required: true
schema:
type: object
properties:
Expand Down