mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-01-19 05:43: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.
16 lines
525 B
JSON
16 lines
525 B
JSON
{
|
|
"type": "object",
|
|
"title": "Event",
|
|
"description": "The basic set of fields all events must have.",
|
|
"properties": {
|
|
"content": {
|
|
"type": "object",
|
|
"description": "The fields in this object will vary depending on the type of event. When interacting with the REST API, this is the HTTP body."
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"description": "The type of event. This SHOULD be namespaced similar to Java package naming conventions e.g. 'com.example.subdomain.event.type'"
|
|
}
|
|
}
|
|
}
|