Skip to content

Commit

Permalink
Remove origin from unsigned_pdu_base.yaml (#998)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jplatte committed Mar 29, 2022
1 parent d38663f commit ac9bee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/998.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove `origin` field from PDUs which exists on many but not all PDUs in practice and doesn't serve an actual purpose.
5 changes: 0 additions & 5 deletions data/api/server-server/definitions/unsigned_pdu_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ properties:
type: string
description: The ID of the user sending the event.
example: "@someone:matrix.org"
origin:
type: string
description: The `server_name` of the homeserver that created this event.
example: "matrix.org"
origin_server_ts:
type: integer
format: int64
Expand Down Expand Up @@ -128,7 +124,6 @@ required:
- event_id
- room_id
- sender
- origin
- origin_server_ts
- type
- content
Expand Down

0 comments on commit ac9bee3

Please sign in to comment.