Remove the "required" designation from the url field of certain

m.room.message msgtypes.

Now that content referenced by the *m.audio*, *m.file*, *m.image*, and
*m.video* message types can be encrypted, the `url` field is required
*only* if the content is unencrypted. The "required" designation in the
event schemas (which prefixes the field description with "Required" in
bold in the generated HTML) is used to indicate fields which must always
be present, and this is no longer the case.

Signed-off-by: Jimmy Cuadra <jimmy@jimmycuadra.com>
This commit is contained in:
Jimmy Cuadra 2019-06-13 17:21:11 -07:00
parent 8bfc42b284
commit b885714d94
5 changed files with 2 additions and 5 deletions

View file

@ -0,0 +1 @@
Remove "required" designation from the ``url`` field of certain ``m`.room.message` msgtypes.

View file

@ -28,7 +28,7 @@ properties:
type: string
url:
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.
type: string
file:
@ -40,7 +40,6 @@ properties:
required:
- msgtype
- body
- url
type: object
type:
enum:

View file

@ -55,7 +55,6 @@ properties:
required:
- msgtype
- body
- url
type: object
type:
enum:

View file

@ -30,7 +30,6 @@ properties:
required:
- msgtype
- body
- url
type: object
type:
enum:

View file

@ -61,7 +61,6 @@ properties:
required:
- msgtype
- body
- url
type: object
type:
enum: