mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-27 01:23:43 +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.
20 lines
717 B
JSON
20 lines
717 B
JSON
{
|
|
"type": "object",
|
|
"title": "State Event",
|
|
"description": "In addition to the Room Event fields, State Events have the following additional fields.",
|
|
"allOf":[{
|
|
"$ref": "core-event-schema/room_event.json"
|
|
}],
|
|
"properties": {
|
|
"state_key": {
|
|
"type": "string",
|
|
"description": "A unique key which defines the overwriting semantics for this piece of room state. This value is often a zero-length string. The presence of this key makes this event a State Event."
|
|
},
|
|
"prev_content": {
|
|
"type": "object",
|
|
"description": "Optional. The previous ``content`` for this event. If there is no previous content, this key will be missing."
|
|
}
|
|
},
|
|
"required": ["state_key"]
|
|
}
|