Skip to content

Commit

Permalink
Clean-up examples and language.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Aug 9, 2023
1 parent e2310ed commit b0b6a89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions data/event-schemas/examples/m.room.create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion data/event-schemas/examples/m.room.redaction.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"$ref": "core/room_event.json",
"type": "m.room.redaction",
"redacts": "$fukweghifu23:localhost",
"content": {
"redacts": "$fukweghifu23:localhost",
"reason": "Spamming"
}
}
2 changes: 0 additions & 2 deletions data/event-schemas/schema/m.room.create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 2 additions & 4 deletions data/event-schemas/schema/m.room.redaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b0b6a89

Please sign in to comment.