mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-17 17:04:10 +01:00
Merge pull request #2129 from jimmycuadra/conditionally-required-url-fields
Remove the "required" designation from the `url` field of certain m.room.message msgtypes.
This commit is contained in:
commit
b807e1cbe5
|
|
@ -0,0 +1 @@
|
||||||
|
Remove "required" designation from the ``url`` field of certain ``m`.room.message` msgtypes.
|
||||||
|
|
@ -28,7 +28,7 @@ properties:
|
||||||
type: string
|
type: string
|
||||||
url:
|
url:
|
||||||
description: |-
|
description: |-
|
||||||
Required if the file is not encrypted. The URL (typically `MXC URI`_)
|
Required if the file is unencrypted. The URL (typically `MXC URI`_)
|
||||||
to the audio clip.
|
to the audio clip.
|
||||||
type: string
|
type: string
|
||||||
file:
|
file:
|
||||||
|
|
@ -40,7 +40,6 @@ properties:
|
||||||
required:
|
required:
|
||||||
- msgtype
|
- msgtype
|
||||||
- body
|
- body
|
||||||
- url
|
|
||||||
type: object
|
type: object
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ properties:
|
||||||
required:
|
required:
|
||||||
- msgtype
|
- msgtype
|
||||||
- body
|
- body
|
||||||
- url
|
|
||||||
type: object
|
type: object
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@ properties:
|
||||||
required:
|
required:
|
||||||
- msgtype
|
- msgtype
|
||||||
- body
|
- body
|
||||||
- url
|
|
||||||
type: object
|
type: object
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ properties:
|
||||||
required:
|
required:
|
||||||
- msgtype
|
- msgtype
|
||||||
- body
|
- body
|
||||||
- url
|
|
||||||
type: object
|
type: object
|
||||||
type:
|
type:
|
||||||
enum:
|
enum:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue