Browse Source

Lint keyboard/project name (#16766)

pull/16767/head
Joel Challis 2 years ago
committed by GitHub
parent
commit
11db29bedb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions
  1. +16
    -0
      data/schemas/definitions.jsonschema
  2. +1
    -0
      data/schemas/keyboard.jsonschema

+ 16
- 0
data/schemas/definitions.jsonschema View File

@ -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"}


+ 1
- 0
data/schemas/keyboard.jsonschema View File

@ -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": {


Loading…
Cancel
Save