Skip to content

Commit ac9bee3

Browse files
authored
Remove origin from unsigned_pdu_base.yaml (#998)
It doesn't serve a useful purpose, is not enforced to be present by Synapse and already being omitted by at least one homeserver implementation.
1 parent d38663f commit ac9bee3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove `origin` field from PDUs which exists on many but not all PDUs in practice and doesn't serve an actual purpose.

data/api/server-server/definitions/unsigned_pdu_base.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ properties:
2525
type: string
2626
description: The ID of the user sending the event.
2727
example: "@someone:matrix.org"
28-
origin:
29-
type: string
30-
description: The `server_name` of the homeserver that created this event.
31-
example: "matrix.org"
3228
origin_server_ts:
3329
type: integer
3430
format: int64
@@ -128,7 +124,6 @@ required:
128124
- event_id
129125
- room_id
130126
- sender
131-
- origin
132127
- origin_server_ts
133128
- type
134129
- content

0 commit comments

Comments
 (0)