From acdd1fc69c4d916ae374373882c4ee7836899a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 15 Sep 2024 10:42:22 +0800 Subject: [PATCH] JsonSchema: add btrfs --- doc/json_schema.json | 79 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 75 insertions(+), 4 deletions(-) diff --git a/doc/json_schema.json b/doc/json_schema.json index db9e587b5..e985921a7 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -655,6 +655,7 @@ "bootmgr", "break", "brightness", + "btrfs", "camera", "chassis", "cpu", @@ -887,10 +888,6 @@ { "const": "wmtheme", "description": "Print current theme of window manager" - }, - { - "const": "zpool", - "description": "Print ZFS storage pools" } ] }, @@ -1059,6 +1056,38 @@ } } }, + { + "title": "BTRFS", + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "btrfs", + "description": "Print Btrfs volumes" + }, + "percent": { + "$ref": "#/$defs/percent" + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyIcon": { + "$ref": "#/$defs/keyIcon" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "outputColor": { + "$ref": "#/$defs/outputColor" + }, + "format": { + "$ref": "#/$defs/format" + } + } + }, { "title": "Chassis", "type": "object", @@ -1634,6 +1663,16 @@ "type": "boolean", "default": false }, + "showSpeed": { + "description": "Show ethernet rx speed", + "type": "boolean", + "default": false + }, + "showMtu": { + "description": "Show MTU", + "type": "boolean", + "default": false + }, "showMac": { "description": "Show MAC addresses", "type": "boolean", @@ -2261,6 +2300,38 @@ "$ref": "#/$defs/format" } } + }, + { + "title": "Zpool", + "type": "object", + "additionalProperties": false, + "properties": { + "type": { + "const": "zpool", + "description": "Print ZFS storage pools" + }, + "percent": { + "$ref": "#/$defs/percent" + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyIcon": { + "$ref": "#/$defs/keyIcon" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "outputColor": { + "$ref": "#/$defs/outputColor" + }, + "format": { + "$ref": "#/$defs/format" + } + } } ] }