summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-01-08 00:00:15 -0800
committerZach White <skullydazed@drpepper.org>2021-01-08 08:40:23 -0800
commit30331b383f9ef4620e47aa07e4f9af7fae9d30b3 (patch)
tree4d1a12b52d99aa3c31f6a859c9a71959159d58de /data
parenta828a82d59b6205a56f7d42d51217f13ffbcb0d5 (diff)
fix bugs triggered by certain boards
Diffstat (limited to 'data')
-rw-r--r--data/schemas/keyboard.jsonschema34
1 files changed, 30 insertions, 4 deletions
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
index 9355ee49bd..e13771e92a 100644
--- a/data/schemas/keyboard.jsonschema
+++ b/data/schemas/keyboard.jsonschema
@@ -167,6 +167,10 @@
"pattern": "^[A-K]\\d{1,2}$"
},
{
+ "type": "number",
+ "multipleOf": 1
+ },
+ {
"type": "null"
}
]
@@ -176,15 +180,37 @@
"cols": {
"type": "array",
"items": {
- "type": "string",
- "pattern": "^[A-K]\\d{1,2}$"
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[A-K]\\d{1,2}$"
+ },
+ {
+ "type": "number",
+ "multipleOf": 1
+ },
+ {
+ "type": "null"
+ }
+ ]
}
},
"rows": {
"type": "array",
"items": {
- "type": "string",
- "pattern": "^[A-K]\\d{1,2}$"
+ "oneOf": [
+ {
+ "type": "string",
+ "pattern": "^[A-K]\\d{1,2}$"
+ },
+ {
+ "type": "number",
+ "multipleOf": 1
+ },
+ {
+ "type": "null"
+ }
+ ]
}
}
}