Compare commits

..

3 commits

Author SHA1 Message Date
Kierre Sametti 92d78c9f3e
Merge cc2623f8da into ef010cd408 2026-02-17 17:24:01 -05:00
Kierre cc2623f8da
apply suggestions from code review 2026-02-17 17:23:26 -05:00
Johannes Marbach ef010cd408
Clarify the requiredness of event_id in predecessor (#2304)
Some checks failed
Spec / 🔎 Validate OpenAPI specifications (push) Has been cancelled
Spec / 🔎 Check Event schema examples (push) Has been cancelled
Spec / 🔎 Check OpenAPI definitions examples (push) Has been cancelled
Spec / 🔎 Check JSON Schemas inline examples (push) Has been cancelled
Spec / ⚙️ Calculate baseURL for later jobs (push) Has been cancelled
Spec / 📢 Run towncrier for changelog (push) Has been cancelled
Spell Check / Spell Check with Typos (push) Has been cancelled
Spec / 🐍 Build OpenAPI definitions (push) Has been cancelled
Spec / 📖 Build the spec (push) Has been cancelled
Spec / 🔎 Validate generated HTML (push) Has been cancelled
Spec / 📖 Build the historical backup spec (push) Has been cancelled
Spec / Create release (push) Has been cancelled
Signed-off-by: Johannes Marbach <n0-0ne+github@mailbox.org>
2026-02-17 22:17:43 +00:00
3 changed files with 5 additions and 4 deletions

View file

@ -0,0 +1 @@
Clarify the requiredness of `event_id` in `predecessor`.

View file

@ -43,8 +43,8 @@ They must be explicitly set during the `/upgrade` call.
{{% /boxes/note %}} {{% /boxes/note %}}
{{% boxes/note %}} {{% boxes/note %}}
{{% added-in v="1.16" %}} When upgrading to room version 12 or later, the `predecessor` field MAY NOT contain {{% added-in v="1.16" %}} When upgrading to room version 12 or later, the `event_id` property inside
an `event_id`. `predecessor` MAY be omitted.
{{% /boxes/note %}} {{% /boxes/note %}}
3. Replicates transferable state events to the new room. The exact 3. Replicates transferable state events to the new room. The exact

View file

@ -5,8 +5,8 @@ When the value is a float
* First, exponential notation is applied: `5.114698E4` becomes `51146.98` * First, exponential notation is applied: `5.114698E4` becomes `51146.98`
* Second, the value is truncated at the decimal point: `51146.98` becomes `51146`. * Second, the value is truncated at the decimal point: `51146.98` becomes `51146`.
Any float greater than or equal to `1e309` must result in the powerlevel event Values outside the range represented by IEE754 binary64 (a "double") cause the
being rejected. powerlevel event to be rejected.
For example, this is a valid `m.room.power_levels` event in this room version: For example, this is a valid `m.room.power_levels` event in this room version: