From 9cf775f47836dffed6aca952e3c0e3f0523dbf1d 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 000000000..6d550dbc0 --- /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 ae38f88c4..f9d5d124a 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: