Browse Source

Fix missing and extra commas in JSON schema (#25057)

lsh4711 1 year ago
parent
commit
800bc78d26

+ 2 - 2
data/schemas/community_module.jsonschema

@@ -3,7 +3,7 @@
     "$id": "qmk.community_module.v1",
     "title": "Community Module Information",
     "type": "object",
-    "required": ["module_name", "maintainer"]
+    "required": ["module_name", "maintainer"],
     "properties": {
         "module_name": {"$ref": "qmk.definitions.v1#/text_identifier"},
         "maintainer": {"$ref": "qmk.definitions.v1#/text_identifier"},
@@ -12,6 +12,6 @@
             "format": "uri"
         },
         "keycodes": {"$ref": "qmk.definitions.v1#/keycode_decl_array"},
-        "features": {"$ref": "qmk.keyboard.v1#/definitions/features_config"},
+        "features": {"$ref": "qmk.keyboard.v1#/definitions/features_config"}
     }
 }

+ 3 - 3
data/schemas/keyboard.jsonschema

@@ -30,12 +30,12 @@
             "properties": {
                 "pins": {"$ref": "qmk.definitions.v1#/mcu_pin_array"}
             }
-        }
+        },
         "features_config": {
             "$ref": "qmk.definitions.v1#/boolean_array",
             "propertyNames": {"$ref": "qmk.definitions.v1#/snake_case"},
             "not": {"required": ["lto"]}
-        },
+        }
     },
     "type": "object",
     "not": {"required": ["vendorId", "productId"]}, // reject via keys...
@@ -354,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": [
                             {

+ 2 - 2
data/schemas/user_repo_v0.jsonschema

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

+ 1 - 1
data/schemas/user_repo_v1.jsonschema

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

+ 1 - 1
data/schemas/user_repo_v1_1.jsonschema

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