Fix examples of StrippedState in s2s spec

pull/2067/head
Travis Ralston 5 years ago
parent 7a07a6b358
commit b9c4a2561f

@ -83,16 +83,8 @@ paths:
canonical alias, avatar, and name of the room.
items:
$ref: "../client-server/definitions/event-schemas/schema/stripped_state.yaml"
example: [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
}
]
example:
$ref: "../client-server/definitions/event-schemas/examples/stripped_state.json"
example: {
"$ref": "examples/minimal_pdu.json",
"type": "m.room.member",
@ -100,26 +92,6 @@ paths:
"origin": "example.org",
"origin_server_ts": 1549041175876,
"sender": "@someone:example.org",
"unsigned": {
"invite_room_state": [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
},
{
"type": "m.room.name",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"name": "Cool New Room"
}
}
]
},
"content": {
"membership": "invite"
},
@ -162,24 +134,9 @@ paths:
"origin_server_ts": 1549041175876,
"sender": "@someone:example.org",
"unsigned": {
"invite_room_state": [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
},
{
"type": "m.room.name",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"name": "Cool New Room"
}
}
]
"invite_room_state": {
"$ref": "../../client-server/definitions/event-schemas/examples/stripped_state.json"
}
},
"content": {
"membership": "invite"

@ -84,16 +84,8 @@ paths:
canonical alias, avatar, and name of the room.
items:
$ref: "../client-server/definitions/event-schemas/schema/stripped_state.yaml"
example: [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
}
]
example:
$ref: "../client-server/definitions/event-schemas/examples/stripped_state.json"
required: ['room_version', 'event']
example: {
"room_version": "2",
@ -112,25 +104,7 @@ paths:
"ed25519:key_version": "SomeSignatureHere"
},
}
},
"invite_room_state": [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
},
{
"type": "m.room.name",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"name": "Cool New Room"
}
}
]
}
}
responses:
200:
@ -156,24 +130,9 @@ paths:
"origin_server_ts": 1549041175876,
"sender": "@someone:example.org",
"unsigned": {
"invite_room_state": [
{
"type": "m.room.join_rules",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"join_rule": "public"
}
},
{
"type": "m.room.name",
"sender": "@someone:matrix.org",
"state_key": "",
"content": {
"name": "Cool New Room"
}
}
]
"invite_room_state": {
"$ref": "../../client-server/definitions/event-schemas/examples/stripped_state.json"
}
},
"content": {
"membership": "invite"

Loading…
Cancel
Save