mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-07-29 00:57:57 +02:00
Convert m.typing JSON schema to YAML
For consistency with other schemas. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
59b92ce9e6
commit
9725a643d5
|
|
@ -1,29 +1,25 @@
|
||||||
{
|
$schema: https://json-schema.org/draft/2020-12/schema
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
||||||
"type": "object",
|
type: object
|
||||||
"title": "Typing Event",
|
title: Typing Event
|
||||||
"description": "Informs the client of the list of users currently typing.",
|
description: Informs the client of the list of users currently typing.
|
||||||
"allOf": [{
|
allOf:
|
||||||
"$ref": "core-event-schema/event.yaml"
|
- $ref: core-event-schema/event.yaml
|
||||||
}],
|
properties:
|
||||||
"properties": {
|
content:
|
||||||
"content": {
|
type: object
|
||||||
"type": "object",
|
properties:
|
||||||
"properties": {
|
user_ids:
|
||||||
"user_ids": {
|
type: array
|
||||||
"type": "array",
|
items:
|
||||||
"items": {
|
type: string
|
||||||
"type": "string"
|
description: The list of user IDs typing in this room, if any.
|
||||||
},
|
required:
|
||||||
"description": "The list of user IDs typing in this room, if any."
|
- user_ids
|
||||||
}
|
type:
|
||||||
},
|
type: string
|
||||||
"required": ["user_ids"]
|
enum:
|
||||||
},
|
- m.typing
|
||||||
"type": {
|
required:
|
||||||
"type": "string",
|
- type
|
||||||
"enum": ["m.typing"]
|
- content
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["type", "content"]
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue