From 6dde7d3b784a64bf46bb1acda0004f15e4233094 Mon Sep 17 00:00:00 2001 From: John Cavanaugh Date: Thu, 11 Sep 2025 11:06:33 -0700 Subject: [PATCH] Fix terminal profile schema to allow null in keybinding id (#19332) Fixes the terminal profile jsonschema to allow for null in the id. This is to match the current implementation when disabling a built in default keybind. (cherry picked from commit eb16eb26ab5d0c3f36a1a2084edcceacdf2a99f9) Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgemwL4 Service-Version: 1.23 --- doc/cascadia/profiles.schema.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/cascadia/profiles.schema.json b/doc/cascadia/profiles.schema.json index d60db96aac..02f73aa64d 100644 --- a/doc/cascadia/profiles.schema.json +++ b/doc/cascadia/profiles.schema.json @@ -2294,8 +2294,15 @@ "additionalProperties": false, "properties": { "id": { - "description": "The ID of the command this keybinding should execute.", - "type": "string" + "description": "The ID of the command this keybinding should execute (or null to disable a default).", + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "keys": { "description": "Defines the key combinations used to call the command. It must be composed of...\n -any number of modifiers (ctrl/alt/shift)\n -a non-modifier key",