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", "type": "m.room.create",
"state_key": "", "state_key": "",
"content": { "content": {
"creator": "@example:example.org", "room_version": "11",
"room_version": "1",
"m.federate": true, "m.federate": true,
"predecessor": { "predecessor": {
"event_id": "$something:example.org", "event_id": "$something:example.org",

View file

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

View file

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

View file

@ -6,20 +6,18 @@ properties:
content: content:
properties: properties:
redacts: 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 type: string
reason: reason:
description: 'The reason for the redaction, if any.' description: 'The reason for the redaction, if any.'
type: string type: string
type: object type: object
redacts: 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: string
type: type:
enum: enum:
- m.room.redaction - m.room.redaction
type: string type: string
required:
- redacts
title: Redaction title: Redaction
type: object type: object