Clean-up examples and language.

This commit is contained in:
Patrick Cloke 2023-08-09 14:48:38 -04:00
parent e2310edfb0
commit b0b6a89ded
4 changed files with 4 additions and 9 deletions

View file

@ -3,8 +3,7 @@
"type": "m.room.create",
"state_key": "",
"content": {
"creator": "@example:example.org",
"room_version": "1",
"room_version": "11",
"m.federate": true,
"predecessor": {
"event_id": "$something:example.org",

View file

@ -1,8 +1,8 @@
{
"$ref": "core/room_event.json",
"type": "m.room.redaction",
"redacts": "$fukweghifu23:localhost",
"content": {
"redacts": "$fukweghifu23:localhost",
"reason": "Spamming"
}
}

View file

@ -34,8 +34,6 @@ properties:
type: string
description: The event ID of the last known event in the old room.
required: [room_id, event_id]
required:
- creator
type: object
state_key:
description: A zero-length string.

View file

@ -6,20 +6,18 @@ properties:
content:
properties:
redacts:
description: The event ID that was redacted. Present starting in room version 11.
description: The event ID that was redacted. Required for, and present starting in, room version 11.
type: string
reason:
description: 'The reason for the redaction, if any.'
type: string
type: object
redacts:
description: Only present in room versions 1 - 10. The event ID that was redacted.
description: Required for, and only present in, room versions 1 - 10. The event ID that was redacted.
type: string
type:
enum:
- m.room.redaction
type: string
required:
- redacts
title: Redaction
type: object