mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-01 12:03:43 +01:00
25 lines
829 B
JSON
25 lines
829 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"type": "object",
|
|
"title": "Event",
|
|
"description": "The basic set of fields all events must have.",
|
|
"properties": {
|
|
"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."
|
|
},
|
|
"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'"
|
|
}
|
|
}
|
|
}
|