From 0c557fe49ceed0b939cdf58ee922eda05c9fe974 Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Wed, 15 Apr 2026 16:17:34 +0100 Subject: [PATCH] Convert m.key_backup.yaml to yaml --- data/event-schemas/schema/m.key_backup.yaml | 49 ++++++++++----------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/data/event-schemas/schema/m.key_backup.yaml b/data/event-schemas/schema/m.key_backup.yaml index f7bd0e0f..5b422203 100644 --- a/data/event-schemas/schema/m.key_backup.yaml +++ b/data/event-schemas/schema/m.key_backup.yaml @@ -1,25 +1,24 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "object", - "title": "Key Backup Event", - "description": "Allows clients to track user preferences about key backup.", - "allOf": [{ - "$ref": "core-event-schema/event.yaml" - }], - "properties": { - "type": { - "type": "string", - "enum": ["m.key_backup"] - }, - "content": { - "type": "object", - "properties": { - "enabled": { - "description": "True if the user chose to enable key backup. False if the user chose to disable key backup.", - "type": "boolean", - } - }, - "required": ["enabled"] - } - }, -} +--- +$schema: https://json-schema.org/draft/2020-12/schema + +allOf: + - $ref: core-event-schema/event.yaml +description: |- + Allows clients to track user preferences about key backup. +properties: + content: + type: object + properties: + enabled: + type: boolean + description: |- + True if the user chose to enable key backup. False if the user chose + to disable key backup. + required: + - enabled + type: + type: string + enum: + - m.key_backup +title: Key Backup Event +type: object