commit 21c396a3aa7bc8deb225cbc8a4ea1bfb069f2333
parent 9a4c30774089b1e0d65e32f86777c69f4f1a313e
Author: QMK Bot <hello@qmk.fm>
Date: Wed, 20 Sep 2023 13:14:27 +0000
Merge remote-tracking branch 'origin/master' into develop
Diffstat:
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/data/schemas/definitions.jsonschema b/data/schemas/definitions.jsonschema
@@ -29,6 +29,10 @@
"minLength": 1,
"maxLength": 250
},
+ "snake_case": {
+ "type": "string",
+ "pattern": "^[a-z][a-z0-9_]*$"
+ },
"layout_macro": {
"oneOf": [
{
diff --git a/data/schemas/keyboard.jsonschema b/data/schemas/keyboard.jsonschema
@@ -268,7 +268,11 @@
"enabled": {"type": "boolean"}
}
},
- "features": {"$ref": "qmk.definitions.v1#/boolean_array"},
+ "features": {
+ "$ref": "qmk.definitions.v1#/boolean_array",
+ "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
+
+ },
"indicators": {
"type": "object",
"properties": {
@@ -382,6 +386,7 @@
"properties": {
"animations": {
"type": "object",
+ "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
"additionalProperties": {
"type": "boolean"
}
@@ -431,6 +436,7 @@
"properties": {
"animations": {
"type": "object",
+ "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
"additionalProperties": {
"type": "boolean"
}
@@ -483,6 +489,7 @@
"properties": {
"animations": {
"type": "object",
+ "propertyNames": { "$ref": "qmk.definitions.v1#/snake_case" }
"additionalProperties": {
"type": "boolean"
}