summaryrefslogtreecommitdiff
path: root/data/schemas
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-06-10 11:44:23 +0100
committerGitHub <noreply@github.com>2022-06-10 11:44:23 +0100
commit7baf9b3f357abe314fcd02e01c814f9516d66e89 (patch)
tree91598b72a23500f17e081601d56fcb2ef1886d55 /data/schemas
parentd8ace624c8e6a3e5e49ad5f612f5222cb766542a (diff)
Promote label with newlines to lint error (#17347)
Diffstat (limited to 'data/schemas')
-rw-r--r--data/schemas/keyboard.jsonschema5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index dc5592220b..fd60920578 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -145,7 +145,10 @@
"type": "object",
"additionalProperties": false,
"properties": {
- "label": {"type": "string"},
+ "label": {
+ "type": "string",
+ "pattern": "^[^\\n]*$"
+ },
"matrix": {
"type": "array",
"minItems": 2,