Remove the origin field in PUT /send_join responses (#2050)

* Remove the `origin` field on PUT /send_join responses

This is a spec bug as it has actually never been sent by Synapse, going back to 2014.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

* Add changelog

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>

---------

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2025-01-21 23:55:27 +01:00 committed by GitHub
parent d0d71d9997
commit a1bdfaa167
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 10 deletions

View file

@ -0,0 +1 @@
Remove the `origin` field in `PUT /send_join` responses, because it was never sent in the first place.

View file

@ -339,9 +339,6 @@ paths:
title: Room State
description: The state for the room.
properties:
origin:
type: string
description: The resident server's [server name](/appendices/#server-name).
auth_chain:
type: array
description: |-
@ -371,13 +368,11 @@ paths:
required:
- auth_chain
- state
- origin
examples:
response:
value: [
200,
{
"origin": "matrix.org",
"auth_chain": [
{
"$ref": "examples/minimal_pdu.json"

View file

@ -160,9 +160,6 @@ paths:
schema:
type: object
properties:
origin:
type: string
description: The resident server's [server name](/appendices/#server-name).
members_omitted:
type: boolean
description: "`true` if `m.room.member` events have been omitted from `state`."
@ -222,11 +219,9 @@ paths:
required:
- auth_chain
- state
- origin
examples:
response:
value: {
"origin": "matrix.org",
"auth_chain": [
{
"$ref": "examples/minimal_pdu.json"