replace definitions/*event.yaml with symlinks to /event-schemas/
parent
2cf8da6b20
commit
c49338006a
@ -0,0 +1 @@
|
|||||||
|
events/core
|
@ -1,7 +0,0 @@
|
|||||||
type: object
|
|
||||||
description: A Matrix Event
|
|
||||||
properties:
|
|
||||||
event_id:
|
|
||||||
type: string
|
|
||||||
description: An event ID.
|
|
||||||
required: ["event_id"]
|
|
@ -1,9 +0,0 @@
|
|||||||
type: object
|
|
||||||
description: A Matrix Room Event
|
|
||||||
properties:
|
|
||||||
event_id:
|
|
||||||
type: string
|
|
||||||
description: An event ID.
|
|
||||||
room_id:
|
|
||||||
type: string
|
|
||||||
required: ["event_id", "room_id"]
|
|
@ -1,11 +0,0 @@
|
|||||||
type: object
|
|
||||||
description: A Matrix State Event
|
|
||||||
properties:
|
|
||||||
event_id:
|
|
||||||
type: string
|
|
||||||
description: An event ID.
|
|
||||||
room_id:
|
|
||||||
type: string
|
|
||||||
state_key:
|
|
||||||
type: string
|
|
||||||
required: ["event_id", "room_id", "state_key"]
|
|
@ -0,0 +1 @@
|
|||||||
|
../../../event-schemas/schema/v1
|
Binary file not shown.
@ -1,20 +1,19 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
"type": "object",
|
||||||
"type": "object",
|
"title": "State Event",
|
||||||
"title": "State Event",
|
"description": "In addition to the Room Event fields, State Events have the following additional fields.",
|
||||||
"description": "In addition to the Room Event fields, State Events have the following additional fields.",
|
"allOf":[{
|
||||||
"allOf":[{
|
"$ref": "core/room_event.json"
|
||||||
"$ref": "core/room_event.json"
|
}],
|
||||||
}],
|
"properties": {
|
||||||
"properties": {
|
"state_key": {
|
||||||
"state_key": {
|
"type": "string",
|
||||||
"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."
|
||||||
"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": {
|
||||||
"prev_content": {
|
"type": "object",
|
||||||
"type": "object",
|
"description": "Optional. The previous ``content`` for this event. If there is no previous content, this key will be missing."
|
||||||
"description": "Optional. The previous ``content`` for this event. If there is no previous content, this key will be missing."
|
}
|
||||||
}
|
},
|
||||||
},
|
"required": ["state_key"]
|
||||||
"required": ["state_key"]
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue