Skip to content

Commit

Permalink
Remove the origin field in PUT /send_join responses (#2050)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
zecakeh authored Jan 21, 2025
1 parent d0d71d9 commit a1bdfaa
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/2050.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the `origin` field in `PUT /send_join` responses, because it was never sent in the first place.
5 changes: 0 additions & 5 deletions data/api/server-server/joins-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |-
Expand Down Expand Up @@ -371,13 +368,11 @@ paths:
required:
- auth_chain
- state
- origin
examples:
response:
value: [
200,
{
"origin": "matrix.org",
"auth_chain": [
{
"$ref": "examples/minimal_pdu.json"
Expand Down
5 changes: 0 additions & 5 deletions data/api/server-server/joins-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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`."
Expand Down Expand Up @@ -222,11 +219,9 @@ paths:
required:
- auth_chain
- state
- origin
examples:
response:
value: {
"origin": "matrix.org",
"auth_chain": [
{
"$ref": "examples/minimal_pdu.json"
Expand Down

0 comments on commit a1bdfaa

Please sign in to comment.