diff --git a/changelogs/server_server/newsfragments/1349.clarification b/changelogs/server_server/newsfragments/1349.clarification new file mode 100644 index 000000000..52a9c92d5 --- /dev/null +++ b/changelogs/server_server/newsfragments/1349.clarification @@ -0,0 +1 @@ +Include examples inline instead of using a reference for invite endpoint definitions. diff --git a/data/api/server-server/invites-v1.yaml b/data/api/server-server/invites-v1.yaml index cd9812c05..ed880c5a0 100644 --- a/data/api/server-server/invites-v1.yaml +++ b/data/api/server-server/invites-v1.yaml @@ -133,9 +133,24 @@ paths: "origin_server_ts": 1549041175876, "sender": "@someone:example.org", "unsigned": { - "invite_room_state": { - "$ref": "../../event-schemas/examples/invite_room_state.json" - } + "invite_room_state": [ + { + "type": "m.room.name", + "sender": "@bob:example.org", + "state_key": "", + "content": { + "name": "Example Room" + } + }, + { + "type": "m.room.join_rules", + "sender": "@bob:example.org", + "state_key": "", + "content": { + "join_rule": "invite" + } + } + ] }, "content": { "membership": "invite" diff --git a/data/api/server-server/invites-v2.yaml b/data/api/server-server/invites-v2.yaml index b8b66f130..0785aadd9 100644 --- a/data/api/server-server/invites-v2.yaml +++ b/data/api/server-server/invites-v2.yaml @@ -129,9 +129,24 @@ paths: "origin_server_ts": 1549041175876, "sender": "@someone:example.org", "unsigned": { - "invite_room_state": { - "$ref": "../../event-schemas/examples/invite_room_state.json" - } + "invite_room_state": [ + { + "type": "m.room.name", + "sender": "@bob:example.org", + "state_key": "", + "content": { + "name": "Example Room" + } + }, + { + "type": "m.room.join_rules", + "sender": "@bob:example.org", + "state_key": "", + "content": { + "join_rule": "invite" + } + } + ] }, "content": { "membership": "invite"