mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-02 04:23:42 +01:00
This commit clarifies the required keys for each type of event that appears in sync, fixes the core event schema not declaring 'content' as required, and includes a mention that events may not have a room_id when appearing in /sync. Fixes https://github.com/matrix-org/matrix-doc/issues/595 Fixes https://github.com/matrix-org/matrix-doc/issues/909
15 lines
405 B
YAML
15 lines
405 B
YAML
allOf:
|
|
- $ref: sync_room_event.yaml
|
|
description: In addition to the Event fields, Room Events have the following additional
|
|
fields.
|
|
properties:
|
|
room_id:
|
|
description: |-
|
|
The ID of the room associated with this event. Will not be present on events
|
|
that arrive through ``/sync``, despite being required everywhere else.
|
|
type: string
|
|
required:
|
|
- room_id
|
|
title: Room Event
|
|
type: object
|