mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-30 14:14:09 +02:00
Remove 'origin' field from transactions
This commit is contained in:
parent
3808a679c1
commit
c908e74f73
|
|
@ -0,0 +1 @@
|
||||||
|
Remove `origin` field from transactions which was redundant and not enforced to be present by Synapse.
|
||||||
|
|
@ -29,4 +29,4 @@ properties:
|
||||||
properties: {}
|
properties: {}
|
||||||
example:
|
example:
|
||||||
$ref: "../examples/minimal_pdu.json"
|
$ref: "../examples/minimal_pdu.json"
|
||||||
required: ['origin', 'origin_server_ts', 'pdus']
|
required: ['origin_server_ts', 'pdus']
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,6 @@ description: Transaction
|
||||||
example:
|
example:
|
||||||
$ref: "../examples/transaction.json"
|
$ref: "../examples/transaction.json"
|
||||||
properties:
|
properties:
|
||||||
origin:
|
|
||||||
type: string
|
|
||||||
description: |-
|
|
||||||
The `server_name` of the homeserver sending this transaction.
|
|
||||||
example: "example.org"
|
|
||||||
origin_server_ts:
|
origin_server_ts:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
|
@ -44,4 +39,4 @@ properties:
|
||||||
properties: {}
|
properties: {}
|
||||||
example:
|
example:
|
||||||
$ref: "../examples/minimal_pdu.json"
|
$ref: "../examples/minimal_pdu.json"
|
||||||
required: ['origin', 'origin_server_ts', 'pdus']
|
required: ['origin_server_ts', 'pdus']
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,4 @@ properties:
|
||||||
properties: {}
|
properties: {}
|
||||||
example:
|
example:
|
||||||
$ref: "../examples/minimal_pdu.json"
|
$ref: "../examples/minimal_pdu.json"
|
||||||
required: ['origin', 'origin_server_ts', 'pdus']
|
required: ['origin_server_ts', 'pdus']
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
"origin": "matrix.org",
|
|
||||||
"origin_server_ts": 1234567890,
|
"origin_server_ts": 1234567890,
|
||||||
"pdus": [{
|
"pdus": [{
|
||||||
"$ref": "minimal_pdu.json"
|
"$ref": "minimal_pdu.json"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue