mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-06-13 11:47:48 +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",
|
||||
"type": "object",
|
||||
"title": "Typing Event",
|
||||
"description": "Informs the client of the list of users currently typing.",
|
||||
"allOf": [{
|
||||
"$ref": "core-event-schema/event.yaml"
|
||||
}],
|
||||
"properties": {
|
||||
"content": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_ids": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "The list of user IDs typing in this room, if any."
|
||||
}
|
||||
},
|
||||
"required": ["user_ids"]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["m.typing"]
|
||||
}
|
||||
},
|
||||
"required": ["type", "content"]
|
||||
}
|
||||
$schema: https://json-schema.org/draft/2020-12/schema
|
||||
|
||||
type: object
|
||||
title: Typing Event
|
||||
description: Informs the client of the list of users currently typing.
|
||||
allOf:
|
||||
- $ref: core-event-schema/event.yaml
|
||||
properties:
|
||||
content:
|
||||
type: object
|
||||
properties:
|
||||
user_ids:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
description: The list of user IDs typing in this room, if any.
|
||||
required:
|
||||
- user_ids
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- m.typing
|
||||
required:
|
||||
- type
|
||||
- content
|
||||
|
|
|
|||
Loading…
Reference in a new issue