From b2c4abf567bbcc667beb8d3e0bf2723cc598c08b Mon Sep 17 00:00:00 2001 From: Johannes Becker <66059836+johannescpk@users.noreply.github.com> Date: Tue, 22 Nov 2022 16:45:30 +0100 Subject: [PATCH] Clarify the power levels integer range (#1169) Signed-off-by: Johannes Becker --- changelogs/client_server/newsfragments/1169.clarification | 1 + data/event-schemas/schema/m.room.power_levels.yaml | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 changelogs/client_server/newsfragments/1169.clarification diff --git a/changelogs/client_server/newsfragments/1169.clarification b/changelogs/client_server/newsfragments/1169.clarification new file mode 100644 index 00000000..6d550dbc --- /dev/null +++ b/changelogs/client_server/newsfragments/1169.clarification @@ -0,0 +1 @@ +Clarify the power levels integer range. \ No newline at end of file diff --git a/data/event-schemas/schema/m.room.power_levels.yaml b/data/event-schemas/schema/m.room.power_levels.yaml index ae38f88c..f9d5d124 100644 --- a/data/event-schemas/schema/m.room.power_levels.yaml +++ b/data/event-schemas/schema/m.room.power_levels.yaml @@ -42,6 +42,9 @@ description: |- `m.room.power_levels` event as soon as it is created. See also the documentation of the `/createRoom` API. + Note: the allowed range for power level values is `[-(2**53)+1, (2**53)-1]`, + as required by the [Canonical JSON specification](/appendices/#canonical-json). + properties: content: properties: