diff options
author | Joel Challis <git@zvecr.com> | 2022-04-01 10:25:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 10:25:43 +0100 |
commit | 11db29bedb24acc6d8c8ab30e4fa7d80b208b023 (patch) | |
tree | ded828de94c07e733bbf951b19541de0510fb4df /data/schemas | |
parent | 64974a7f8fbda680ea307a9a4c2cb1cfbe92c01e (diff) | |
download | qmk_firmware-11db29bedb24acc6d8c8ab30e4fa7d80b208b023.tar.gz qmk_firmware-11db29bedb24acc6d8c8ab30e4fa7d80b208b023.zip |
Lint keyboard/project name (#16766)
Diffstat (limited to 'data/schemas')
-rw-r--r-- | data/schemas/definitions.jsonschema | 16 | ||||
-rw-r--r-- | data/schemas/keyboard.jsonschema | 1 |
2 files changed, 17 insertions, 0 deletions
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema index 46aba52cbd..cca30af827 100644 --- a/data/schemas/definitions.jsonschema +++ b/data/schemas/definitions.jsonschema @@ -71,6 +71,22 @@ "type": "number", "min": 0.25 }, + "keyboard": { + "oneOf": [ + { + "type": "string", + "enum": [ + "converter/numeric_keypad_IIe", + "emptystring/NQG", + "maple_computing/christmas_tree/V2017" + ] + }, + { + "type": "string", + "pattern": "^[0-9a-z][0-9a-z_/]*$" + } + ] + }, "mcu_pin_array": { "type": "array", "items": {"$ref": "#/mcu_pin"} diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema index a8b3d06933..adb63fd13e 100644 --- a/data/schemas/keyboard.jsonschema +++ b/data/schemas/keyboard.jsonschema @@ -5,6 +5,7 @@ "type": "object", "properties": { "keyboard_name": {"$ref": "qmk.definitions.v1#/text_identifier"}, + "keyboard_folder": {"$ref": "qmk.definitions.v1#/keyboard"}, "maintainer": {"$ref": "qmk.definitions.v1#/text_identifier"}, "manufacturer": {"$ref": "qmk.definitions.v1#/text_identifier"}, "url": { |