Update the docs for room v1 api
This commit is contained in:
parent
f33c0846c3
commit
6a2c4d27fc
2 changed files with 6 additions and 6 deletions
|
@ -168,7 +168,7 @@ paths:
|
||||||
title: StateEvent
|
title: StateEvent
|
||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- "$ref": "events/core/state_event.json"
|
- "$ref": "core-event-schema/state_event.json"
|
||||||
403:
|
403:
|
||||||
description: You are not joined to the room.
|
description: You are not joined to the room.
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
title: RoomEvent
|
title: RoomEvent
|
||||||
allOf:
|
allOf:
|
||||||
- "$ref": "events/core/room_event.json"
|
- "$ref": "core-event-schema/room_event.json"
|
||||||
required: ["start", "end", "chunk"]
|
required: ["start", "end", "chunk"]
|
||||||
state:
|
state:
|
||||||
type: array
|
type: array
|
||||||
|
@ -357,7 +357,7 @@ paths:
|
||||||
title: StateEvent
|
title: StateEvent
|
||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- "$ref": "events/core/state_event.json"
|
- "$ref": "core-event-schema/state_event.json"
|
||||||
visibility:
|
visibility:
|
||||||
type: string
|
type: string
|
||||||
enum: ["private", "public"]
|
enum: ["private", "public"]
|
||||||
|
@ -414,7 +414,7 @@ paths:
|
||||||
"state_key": "@bob:example.com",
|
"state_key": "@bob:example.com",
|
||||||
"type": "m.room.member",
|
"type": "m.room.member",
|
||||||
"user_id": "@bob:example.com"
|
"user_id": "@bob:example.com"
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
schema:
|
schema:
|
||||||
|
@ -426,5 +426,5 @@ paths:
|
||||||
title: MemberEvent
|
title: MemberEvent
|
||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- "$ref": "events/m.room.member"
|
- "$ref": "v1-event-schema/m.room.member"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
"description": "The avatar URL for this user, if any. This is added by the homeserver."
|
"description": "The avatar URL for this user, if any. This is added by the homeserver."
|
||||||
},
|
},
|
||||||
"displayname": {
|
"displayname": {
|
||||||
"type": "string",
|
"type": ["string", "null"],
|
||||||
"description": "The display name for this user, if any. This is added by the homeserver."
|
"description": "The display name for this user, if any. This is added by the homeserver."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue