finally figured out how to validate

This commit is contained in:
Mike Griese
2023-01-11 15:25:37 -06:00
parent d523b32031
commit 35e0889048

View File

@@ -1560,7 +1560,8 @@
{
"pattern": "^#[A-Fa-f0-9]{3}(?:[A-Fa-f0-9]{3}(?:[A-Fa-f0-9]{2})?)?$",
"type": "string",
"format": "color"
"format": "color",
"default": "#000000ff"
},
{
"const": "accent",
@@ -1613,7 +1614,8 @@
"properties": {
"applicationTheme": {
"description": "Which UI theme the Terminal should use for controls",
"oneOf": [ "light", "dark", "system" ]
"enum": [ "light", "dark", "system" ],
"type": "string"
},
"useMica": {
"description": "True if the Terminal should use a Mica backdrop for the window. This will apply underneath all controls (including the terminal panes and the titlebar)",
@@ -1629,7 +1631,9 @@
"name": {
"type": "string",
"description": "The name of the theme. This will be displayed in the settings UI.",
"noneOf": [ "light", "dark", "system" ]
"not": {
"enum": [ "light", "dark", "system" ]
}
},
"tab": {
"$ref": "#/$defs/TabTheme"