Fill out the required fields in all the examples

This commit is contained in:
Travis Ralston 2018-07-13 15:04:45 -06:00
parent 9c1c541a38
commit 45ec8269e6
3 changed files with 15 additions and 2 deletions

View file

@ -4,6 +4,13 @@
"origin": "example.com", "origin": "example.com",
"event_id": "$a4ecee13e2accdadf56c1025:example.com", "event_id": "$a4ecee13e2accdadf56c1025:example.com",
"origin_server_ts": 1404838188000, "origin_server_ts": 1404838188000,
"depth": 12,
"auth_events": [
[
"$af232176:example.org",
{"sha256": "abase64encodedsha256hashshouldbe43byteslong"}
]
],
"type": "m.room.message", "type": "m.room.message",
"prev_events": [ "prev_events": [
[ [

View file

@ -53,9 +53,11 @@ paths:
example: { example: {
"$ref": "examples/pdu.json", "$ref": "examples/pdu.json",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@someone:example.org",
"content": { "content": {
"membership": "invite" "membership": "invite"
} },
"unsigned": {}
} }
responses: responses:
200: 200:
@ -77,8 +79,10 @@ paths:
{ {
"$ref": "examples/pdu.json", "$ref": "examples/pdu.json",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@someone:example.org",
"content": { "content": {
"membership": "invite" "membership": "invite"
} },
"unsigned": {}
} }
] ]

View file

@ -125,6 +125,7 @@ paths:
application/json: { application/json: {
"$ref": "examples/unsigned_pdu.json", "$ref": "examples/unsigned_pdu.json",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@someone:example.org",
"content": { "content": {
"membership": "join" "membership": "join"
} }
@ -228,6 +229,7 @@ paths:
example: { example: {
"$ref": "examples/pdu.json", "$ref": "examples/pdu.json",
"type": "m.room.member", "type": "m.room.member",
"state_key": "@someone:example.org",
"content": { "content": {
"membership": "join" "membership": "join"
} }