summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
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"
+ }
+ ]
}
}
}