mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-26 00:53:42 +01:00
Rename "schema/v1/core" to "schema/v1/core-event-schema". Add self-referential symlinks to schema/v1/core-event-schema The python json schema libraries expect that relative references are relative to the file they are in. The node json schema libraries expect that relateive references are relative to the first file loaded. To support both kinds we reference the core event schema using "core-event-schema/event.json". We then symlink the core-event-schema directory to both the location of the file refering to "event.json" so that it will work in python and to the location of the top level file so that it will work in node.
24 lines
632 B
JSON
24 lines
632 B
JSON
{
|
|
"type": "object",
|
|
"title": "Room Event",
|
|
"description": "In addition to the Event fields, Room Events MUST have the following additional field.",
|
|
"allOf":[{
|
|
"$ref": "core-event-schema/event.json"
|
|
}],
|
|
"properties": {
|
|
"room_id": {
|
|
"type": "string",
|
|
"description": "The ID of the room associated with this event."
|
|
},
|
|
"event_id": {
|
|
"type": "string",
|
|
"description": "The globally unique event identifier."
|
|
},
|
|
"user_id": {
|
|
"type": "string",
|
|
"description": "Contains the fully-qualified ID of the user who *sent* this event."
|
|
}
|
|
},
|
|
"required": ["room_id"]
|
|
}
|