use valid json syntax for jsonschema

This commit is contained in:
Buckwich 2024-11-11 23:45:13 +01:00
parent 8cbd631fcb
commit d667eb193d
5 changed files with 11 additions and 7 deletions

View File

@ -33,7 +33,10 @@
}
},
"type": "object",
"not": {"required": ["vendorId", "productId"]}, // reject via keys...
"not": {
"$comment": "reject via keys...",
"required": ["vendorId", "productId"]
},
"properties": {
"keyboard_name": {"$ref": "qmk.definitions.v1#/text_identifier"},
"keyboard_folder": {"$ref": "qmk.definitions.v1#/keyboard"},
@ -351,7 +354,7 @@
"axis_resolution": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"axes": {
"type": "object",
"propertyNames": {"enum": ["x", "y", "z", "rx", "ry", "rz"]}
"propertyNames": {"enum": ["x", "y", "z", "rx", "ry", "rz"]},
"additionalProperties": {
"oneOf": [
{

View File

@ -33,7 +33,8 @@
"$ref": "qmk.definitions.v1#/hex_number_4d"
},
"additionalProperties": {
"type": "object", // use 'qmk.definitions.v1#/keycode_decl' when problem keycodes are removed
"$comment": "use 'qmk.definitions.v1#/keycode_decl' when problem keycodes are removed",
"type": "object",
"required": [
"key"
],

View File

@ -8,7 +8,7 @@
],
"properties": {
"userspace_version": {
"type": "string",
},
"type": "string"
}
}
}

View File

@ -9,7 +9,7 @@
{"$ref": "qmk.definitions.v1#/keyboard_keymap_tuple"},
{"$ref": "qmk.definitions.v1#/json_file_path"}
]
},
}
},
"required": [
"userspace_version",

View File

@ -10,7 +10,7 @@
{"$ref": "qmk.definitions.v1#/keyboard_keymap_env"},
{"$ref": "qmk.definitions.v1#/json_file_path"}
]
},
}
},
"required": [
"userspace_version",