aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/qmk/json_schema.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/qmk/json_schema.py b/lib/python/qmk/json_schema.py
index b11a0ed7ea..e871598565 100644
--- a/lib/python/qmk/json_schema.py
+++ b/lib/python/qmk/json_schema.py
@@ -76,8 +76,13 @@ def compile_schema_store():
if not isinstance(schema_data, dict):
cli.log.debug('Skipping schema file %s', schema_file)
continue
+
+ # `$id`-based references
schema_store[schema_data['$id']] = schema_data
+ # Path-based references
+ schema_store[Path(schema_file).name] = schema_data
+
return schema_store