Merge pull request #2575 from matrix-org/travis/clarification/send-join
Clarify the auth_chain and state requirements for /send_join
This commit is contained in:
commit
db72e7caea
4 changed files with 61 additions and 82 deletions
58
api/server-server/definitions/send_join_response.yaml
Normal file
58
api/server-server/definitions/send_join_response.yaml
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
# Copyright 2018 New Vector Ltd
|
||||||
|
# Copyright 2020 The Matrix.org Foundation C.I.C.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
type: object
|
||||||
|
title: Room State
|
||||||
|
description: The state for the room.
|
||||||
|
properties:
|
||||||
|
origin:
|
||||||
|
type: string
|
||||||
|
description: The resident server's DNS name.
|
||||||
|
auth_chain:
|
||||||
|
type: array
|
||||||
|
description: |-
|
||||||
|
The auth chain for the entire current room state prior to the join event.
|
||||||
|
|
||||||
|
Note that events have a different format depending on the room version - check the
|
||||||
|
`room version specification`_ for precise event formats.
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
title: PDU
|
||||||
|
description: |-
|
||||||
|
The `PDUs <#pdus>`_ that make up the auth chain. The event format varies depending
|
||||||
|
on the room version - check the `room version specification`_ for precise event formats.
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties: []
|
||||||
|
example:
|
||||||
|
$ref: "../examples/minimal_pdu.json"
|
||||||
|
state:
|
||||||
|
type: array
|
||||||
|
description: |-
|
||||||
|
The resolved current room state prior to the join event.
|
||||||
|
|
||||||
|
The event format varies depending on the room version - check the `room version specification`_
|
||||||
|
for precise event formats.
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
title: PDU
|
||||||
|
description: |-
|
||||||
|
The `PDUs <#pdus>`_ for the fully resolved state of the room. The event format varies depending
|
||||||
|
on the room version - check the `room version specification`_ for precise event formats.
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties: []
|
||||||
|
example:
|
||||||
|
$ref: "../examples/minimal_pdu.json"
|
||||||
|
required: ["auth_chain", "state", "origin"]
|
|
@ -262,47 +262,7 @@ paths:
|
||||||
- type: integer
|
- type: integer
|
||||||
description: The value ``200``.
|
description: The value ``200``.
|
||||||
example: 200
|
example: 200
|
||||||
- type: object
|
- $ref: "./definitions/send_join_response.yaml"
|
||||||
title: Room State
|
|
||||||
description: The state for the room.
|
|
||||||
properties:
|
|
||||||
origin:
|
|
||||||
type: string
|
|
||||||
description: The resident server's DNS name.
|
|
||||||
auth_chain:
|
|
||||||
type: array
|
|
||||||
description: |-
|
|
||||||
The auth chain. Note that events have a different format depending on
|
|
||||||
the room version - check the `room version specification`_ for precise
|
|
||||||
event formats.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: PDU
|
|
||||||
description: |-
|
|
||||||
The `PDUs <#pdus>`_ that make up the auth chain. The event format varies depending
|
|
||||||
on the room version - check the `room version specification`_ for precise event formats.
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties: []
|
|
||||||
example:
|
|
||||||
$ref: "examples/minimal_pdu.json"
|
|
||||||
state:
|
|
||||||
type: array
|
|
||||||
description: |-
|
|
||||||
The room state. The event format varies depending on the room version -
|
|
||||||
check the `room version specification`_ for precise event formats.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: PDU
|
|
||||||
description: |-
|
|
||||||
The `PDUs <#pdus>`_ for the fully resolved state of the room. The event format varies depending
|
|
||||||
on the room version - check the `room version specification`_ for precise event formats.
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties: []
|
|
||||||
example:
|
|
||||||
$ref: "examples/minimal_pdu.json"
|
|
||||||
required: ["auth_chain", "state", "origin"]
|
|
||||||
examples:
|
examples:
|
||||||
application/json: [
|
application/json: [
|
||||||
200,
|
200,
|
||||||
|
|
|
@ -127,47 +127,7 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
The full state for the room, having accepted the join event.
|
The full state for the room, having accepted the join event.
|
||||||
schema:
|
schema:
|
||||||
type: object
|
$ref: "./definitions/send_join_response.yaml"
|
||||||
title: Room State
|
|
||||||
description: The state for the room.
|
|
||||||
properties:
|
|
||||||
origin:
|
|
||||||
type: string
|
|
||||||
description: The resident server's DNS name.
|
|
||||||
auth_chain:
|
|
||||||
type: array
|
|
||||||
description: |-
|
|
||||||
The auth chain. Note that events have a different format depending on
|
|
||||||
the room version - check the `room version specification`_ for precise
|
|
||||||
event formats.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: PDU
|
|
||||||
description: |-
|
|
||||||
The `PDUs <#pdus>`_ that make up the auth chain. The event format varies depending
|
|
||||||
on the room version - check the `room version specification`_ for precise event formats.
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties: []
|
|
||||||
example:
|
|
||||||
$ref: "examples/minimal_pdu.json"
|
|
||||||
state:
|
|
||||||
type: array
|
|
||||||
description: |-
|
|
||||||
The room state. The event format varies depending on the room version -
|
|
||||||
check the `room version specification`_ for precise event formats.
|
|
||||||
items:
|
|
||||||
type: object
|
|
||||||
title: PDU
|
|
||||||
description: |-
|
|
||||||
The `PDUs <#pdus>`_ for the fully resolved state of the room. The event format varies depending
|
|
||||||
on the room version - check the `room version specification`_ for precise event formats.
|
|
||||||
schema:
|
|
||||||
type: object
|
|
||||||
properties: []
|
|
||||||
example:
|
|
||||||
$ref: "examples/minimal_pdu.json"
|
|
||||||
required: ["auth_chain", "state", "origin"]
|
|
||||||
examples:
|
examples:
|
||||||
application/json: {
|
application/json: {
|
||||||
"origin": "matrix.org",
|
"origin": "matrix.org",
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Clarify the state/auth chain requirements for ``/send_join``.
|
Loading…
Add table
Add a link
Reference in a new issue