summaryrefslogtreecommitdiff
path: root/data/schemas/definitions.jsonschema
diff options
context:
space:
mode:
Diffstat (limited to 'data/schemas/definitions.jsonschema')
-rw-r--r--data/schemas/definitions.jsonschema42
1 files changed, 38 insertions, 4 deletions
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema
index 822f237073..46aba52cbd 100644
--- a/data/schemas/definitions.jsonschema
+++ b/data/schemas/definitions.jsonschema
@@ -20,6 +20,10 @@
"type": "string",
"pattern": "^0x[0-9A-F]{4}$"
},
+ "bcd_version": {
+ "type": "string",
+ "pattern": "^[0-9]{1,2}\\.[0-9]\\.[0-9]$"
+ },
"text_identifier": {
"type": "string",
"minLength": 1,
@@ -29,7 +33,33 @@
"oneOf": [
{
"type": "string",
- "enum": ["LAYOUT", "LAYOUT_planck_1x2uC"]
+ "enum": [
+ "LAYOUT",
+ "LAYOUT_1x2uC",
+ "LAYOUT_1x2uL",
+ "LAYOUT_1x2uR",
+ "LAYOUT_2x2uC",
+ "LAYOUT_2x3uC",
+ "LAYOUT_625uC",
+ "LAYOUT_ANSI_DEFAULT",
+ "LAYOUT_JP",
+ "LAYOUT_ortho_3x12_1x2uC",
+ "LAYOUT_ortho_4x12_1x2uC",
+ "LAYOUT_ortho_4x12_1x2uL",
+ "LAYOUT_ortho_4x12_1x2uR",
+ "LAYOUT_ortho_5x12_1x2uC",
+ "LAYOUT_ortho_5x12_2x2uC",
+ "LAYOUT_ortho_5x14_1x2uC",
+ "LAYOUT_ortho_5x14_1x2uL",
+ "LAYOUT_ortho_5x14_1x2uR",
+ "LAYOUT_planck_1x2uC",
+ "LAYOUT_planck_1x2uL",
+ "LAYOUT_planck_1x2uR",
+ "LAYOUT_preonic_1x2uC",
+ "LAYOUT_preonic_1x2uL",
+ "LAYOUT_preonic_1x2uR",
+ "LAYOUT_reviung34_2uL"
+ ]
},
{
"type": "string",
@@ -49,6 +79,10 @@
"oneOf": [
{
"type": "string",
+ "enum": ["NO_PIN"]
+ },
+ {
+ "type": "string",
"pattern": "^[A-K]\\d{1,2}$"
},
{
@@ -70,13 +104,13 @@
"signed_int": {
"type": "number",
"multipleOf": 1
- }
+ },
"signed_int_8": {
"type": "number",
"min": -127,
"max": 127,
"multipleOf": 1
- }
+ },
"string_array": {
"type": "array",
"items": {
@@ -97,7 +131,7 @@
"type": "number",
"min": 0,
"multipleOf": 1
- }
+ },
"unsigned_int_8": {
"type": "number",
"min": 0,