mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Convert m.receipt.yaml to traditional YAML
This commit is contained in:
parent
5572d33453
commit
06ddb862c3
|
|
@ -1,49 +1,42 @@
|
||||||
{
|
type: object
|
||||||
"type": "object",
|
title: Receipt Event
|
||||||
"title": "Receipt Event",
|
description: Informs the client of new receipts.
|
||||||
"description": "Informs the client of new receipts.",
|
allOf:
|
||||||
"allOf": [{
|
- $ref: "core-event-schema/event.yaml"
|
||||||
"$ref": "core-event-schema/event.yaml"
|
properties:
|
||||||
}],
|
content:
|
||||||
"properties": {
|
type: object
|
||||||
"content": {
|
patternProperties:
|
||||||
"type": "object",
|
"^\\$":
|
||||||
"patternProperties": {
|
type: object
|
||||||
"^\\$": {
|
x-pattern: "$EVENT_ID"
|
||||||
"type": "object",
|
title: Receipts
|
||||||
"x-pattern": "$EVENT_ID",
|
description: |-
|
||||||
"title": "Receipts",
|
The mapping of event ID to a collection of receipts for this
|
||||||
"description": "The mapping of event ID to a collection of receipts for this event ID. The event ID is the ID of the event being acknowledged and *not* an ID for the receipt itself.",
|
event ID. The event ID is the ID of the event being acknowledged
|
||||||
"properties": {
|
and *not* an ID for the receipt itself.
|
||||||
"m.read": {
|
properties:
|
||||||
"type": "object",
|
"m.read":
|
||||||
"title": "Users",
|
type: object
|
||||||
"description": "A collection of users who have sent `m.read` receipts for this event.",
|
title: Users
|
||||||
"patternProperties": {
|
description: |-
|
||||||
"^@": {
|
A collection of users who have sent `m.read` receipts for
|
||||||
"type": "object",
|
this event.
|
||||||
"title": "Receipt",
|
patternProperties:
|
||||||
"description": "The mapping of user ID to receipt. The user ID is the entity who sent this receipt.",
|
"^@":
|
||||||
"x-pattern": "$USER_ID",
|
type: object
|
||||||
"properties": {
|
title: Receipt
|
||||||
"ts": {
|
description: |-
|
||||||
"type": "integer",
|
The mapping of user ID to receipt. The user ID is the
|
||||||
"format": "int64",
|
entity who sent this receipt.
|
||||||
"description": "The timestamp the receipt was sent at."
|
x-pattern: "$USER_ID"
|
||||||
}
|
properties:
|
||||||
}
|
ts:
|
||||||
}
|
type: integer
|
||||||
}
|
format: int64
|
||||||
}
|
description: The timestamp the receipt was sent at.
|
||||||
}
|
additionalProperties: false
|
||||||
}
|
type:
|
||||||
},
|
type: string
|
||||||
"additionalProperties": false
|
enum: ["m.receipt"]
|
||||||
},
|
required: ["type", "content"]
|
||||||
"type": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": ["m.receipt"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "content"]
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue