matrix-spec/event-schemas/schema/v1/m.receipt

44 lines
1.5 KiB
Plaintext
Raw Normal View History

2015-09-08 17:49:14 +02:00
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Receipt Event",
"description": "Informs the client of new receipts.",
"properties": {
"content": {
"type": "object",
"description": "The event ids which the receipts relate to.",
"patternProperties": {
2015-09-08 17:51:08 +02:00
"^\\$": {
2015-09-08 17:49:14 +02:00
"type": "object",
2015-09-08 17:52:43 +02:00
"description": "The types of the receipts.",
2015-09-08 17:49:14 +02:00
"additionalProperties": {
"type": "object",
"description": "User ids of the receipts",
"patternProperties": {
"^@": {
"type": "object",
"properties": {
"ts": {
"type": "number",
"description": "The timestamp the receipt was sent at"
}
}
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"type": {
"type": "string",
2015-09-08 17:54:14 +02:00
"enum": ["m.receipt"]
2015-09-08 17:49:14 +02:00
},
"room_id": {
"type": "string"
}
},
"required": ["room_id", "type", "content"]
}