Commit e3cc05d6 authored by Erik Reider's avatar Erik Reider

Moved JSON Schema comments into "$comment" tags. Fixes #298

parent 90cde83b
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
"default": ["inhibitors", "title", "dnd", "notifications"], "default": ["inhibitors", "title", "dnd", "notifications"],
"items": { "items": {
"type": "string", "type": "string",
// Sadly can't use regex and enums at the same time. Fix in the future? "$comment": "Sadly can't use regex and enums at the same time. Fix in the future?",
"pattern": "^[a-zA-Z0-9_-]{1,}(#[a-zA-Z0-9_-]{1,}){0,1}?$" "pattern": "^[a-zA-Z0-9_-]{1,}(#[a-zA-Z0-9_-]{1,}){0,1}?$"
} }
}, },
...@@ -298,10 +298,10 @@ ...@@ -298,10 +298,10 @@
"type": "object", "type": "object",
"description": "Configure specific widget properties.", "description": "Configure specific widget properties.",
"additionalProperties": false, "additionalProperties": false,
"$comment": "New widgets go here in \"patternProperties\" ↓",
"patternProperties": { "patternProperties": {
// New widgets go here
"^title(#[a-zA-Z0-9_-]{1,}){0,1}?$": { "^title(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
// References the widget structure from "widgets" below "$comment": "References the widget structure from \"widgets\" below",
"$ref": "#/widgets/title" "$ref": "#/widgets/title"
}, },
"^dnd(#[a-zA-Z0-9_-]{1,}){0,1}?$": { "^dnd(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
...@@ -326,14 +326,14 @@ ...@@ -326,14 +326,14 @@
"$ref": "#/widgets/backlight" "$ref": "#/widgets/backlight"
}, },
"^inhibitors(#[a-zA-Z0-9_-]{1,}){0,1}?$": { "^inhibitors(#[a-zA-Z0-9_-]{1,}){0,1}?$": {
// References the widget structure from "widgets" below "$comment": "References the widget structure from \"widgets\" below",
"$ref": "#/widgets/inhibitors" "$ref": "#/widgets/inhibitors"
} }
} }
} }
}, },
"widgets": { "widgets": {
// New widgets go here "$comment": "New widgets go here",
"title": { "title": {
"type": "object", "type": "object",
"description": "Control Center Title Widget", "description": "Control Center Title Widget",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment