Remove 'origin' field from transactions

This commit is contained in:
Jonas Platte 2022-10-11 15:30:25 +02:00
parent 3808a679c1
commit c908e74f73
No known key found for this signature in database
GPG key ID: BBA95679259D342F
5 changed files with 4 additions and 9 deletions

View file

@ -0,0 +1 @@
Remove `origin` field from transactions which was redundant and not enforced to be present by Synapse.

View file

@ -29,4 +29,4 @@ properties:
properties: {}
example:
$ref: "../examples/minimal_pdu.json"
required: ['origin', 'origin_server_ts', 'pdus']
required: ['origin_server_ts', 'pdus']

View file

@ -17,11 +17,6 @@ description: Transaction
example:
$ref: "../examples/transaction.json"
properties:
origin:
type: string
description: |-
The `server_name` of the homeserver sending this transaction.
example: "example.org"
origin_server_ts:
type: integer
format: int64
@ -44,4 +39,4 @@ properties:
properties: {}
example:
$ref: "../examples/minimal_pdu.json"
required: ['origin', 'origin_server_ts', 'pdus']
required: ['origin_server_ts', 'pdus']

View file

@ -30,4 +30,4 @@ properties:
properties: {}
example:
$ref: "../examples/minimal_pdu.json"
required: ['origin', 'origin_server_ts', 'pdus']
required: ['origin_server_ts', 'pdus']

View file

@ -1,5 +1,4 @@
{
"origin": "matrix.org",
"origin_server_ts": 1234567890,
"pdus": [{
"$ref": "minimal_pdu.json"