Make url required for m.file-like messages
Fixes https://github.com/matrix-org/matrix-doc/issues/2008 This also removes `filename` from `m.file` because it has never been used in practice.
This commit is contained in:
parent
d2232aca97
commit
464845feb0
5 changed files with 5 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
Clarify the required fields on ``m.file`` (and similar) messages.
|
|
@ -38,6 +38,7 @@ properties:
|
|||
required:
|
||||
- msgtype
|
||||
- body
|
||||
- url
|
||||
type: object
|
||||
type:
|
||||
enum:
|
||||
|
|
|
@ -53,7 +53,7 @@ properties:
|
|||
required:
|
||||
- msgtype
|
||||
- body
|
||||
- filename
|
||||
- url
|
||||
type: object
|
||||
type:
|
||||
enum:
|
||||
|
|
|
@ -28,6 +28,7 @@ properties:
|
|||
required:
|
||||
- msgtype
|
||||
- body
|
||||
- url
|
||||
type: object
|
||||
type:
|
||||
enum:
|
||||
|
|
|
@ -59,6 +59,7 @@ properties:
|
|||
required:
|
||||
- msgtype
|
||||
- body
|
||||
- url
|
||||
type: object
|
||||
type:
|
||||
enum:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue