You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
993 B
Plaintext
48 lines
993 B
Plaintext
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"definitions": {
|
|
"event": {
|
|
"type": "object",
|
|
"properties": {
|
|
"event_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "object"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["event_id", "user_id", "content", "type"]
|
|
},
|
|
"room_event": {
|
|
"type": "object",
|
|
"allOf":[{
|
|
"$ref": "#/definitions/event"
|
|
}],
|
|
"properties": {
|
|
"room_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["room_id"]
|
|
},
|
|
"state_event": {
|
|
"type": "object",
|
|
"allOf":[{
|
|
"$ref": "#/definitions/room_event"
|
|
}],
|
|
"properties": {
|
|
"state_key": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": ["state_key"]
|
|
}
|
|
}
|
|
}
|