From e670fb1f5a67daefdf4d4351ff33dd21bb945981 Mon Sep 17 00:00:00 2001 From: Jimmy Cuadra Date: Wed, 12 Jun 2019 14:32:33 -0700 Subject: [PATCH] Add missing format fields to m.room.message$m.notice schema. Signed-off-by: Jimmy Cuadra --- .../client_server/newsfragments/2125.clarification | 1 + event-schemas/schema/m.room.message$m.notice | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 changelogs/client_server/newsfragments/2125.clarification diff --git a/changelogs/client_server/newsfragments/2125.clarification b/changelogs/client_server/newsfragments/2125.clarification new file mode 100644 index 00000000..c71cdfff --- /dev/null +++ b/changelogs/client_server/newsfragments/2125.clarification @@ -0,0 +1 @@ +Add missing format fields to ``m.room.message$m.notice`` schema. diff --git a/event-schemas/schema/m.room.message$m.notice b/event-schemas/schema/m.room.message$m.notice index ef97e28a..19c4f985 100644 --- a/event-schemas/schema/m.room.message$m.notice +++ b/event-schemas/schema/m.room.message$m.notice @@ -12,6 +12,16 @@ properties: enum: - m.notice type: string + format: + description: |- + The format used in the ``formatted_body``. Currently only + ``org.matrix.custom.html`` is supported. + type: string + formatted_body: + description: |- + The formatted version of the ``body``. This is required if ``format`` + is specified. + type: string required: - msgtype - body