mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Declare required properties correctly
This commit is contained in:
parent
2d39ed69c3
commit
ee3ca86b6c
|
|
@ -71,7 +71,6 @@ paths:
|
|||
properties:
|
||||
room_version:
|
||||
type: string
|
||||
required: true # knocking was supported in v7
|
||||
description: |-
|
||||
The version of the room where the server is trying to knock.
|
||||
example: "7"
|
||||
|
|
@ -122,6 +121,9 @@ paths:
|
|||
- type
|
||||
- content
|
||||
- sender
|
||||
required:
|
||||
- room_version # knocking was added in v7
|
||||
- event
|
||||
examples:
|
||||
application/json: {
|
||||
"room_version": "7",
|
||||
|
|
|
|||
Loading…
Reference in a new issue