matrix-spec/data/event-schemas/schema/core-event-schema/room_event.yaml
Kévin Commaille d601884378
Clarify string formats of event endpoints and schemas
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2026-03-30 17:58:24 +02:00

18 lines
474 B
YAML

$schema: https://json-schema.org/draft/2020-12/schema
title: RoomEvent
description: Room Events have the following fields.
allOf:
- $ref: sync_room_event.yaml
- type: object
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
format: mx-room-id
pattern: "^!"
required:
- room_id