diff options
Diffstat (limited to 'lib/python/qmk/json_schema.py')
| -rw-r--r-- | lib/python/qmk/json_schema.py | 5 |
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(): | |||
| 76 | if not isinstance(schema_data, dict): | 76 | if not isinstance(schema_data, dict): |
| 77 | cli.log.debug('Skipping schema file %s', schema_file) | 77 | cli.log.debug('Skipping schema file %s', schema_file) |
| 78 | continue | 78 | continue |
| 79 | |||
| 80 | # `$id`-based references | ||
| 79 | schema_store[schema_data['$id']] = schema_data | 81 | schema_store[schema_data['$id']] = schema_data |
| 80 | 82 | ||
| 83 | # Path-based references | ||
| 84 | schema_store[Path(schema_file).name] = schema_data | ||
| 85 | |||
| 81 | return schema_store | 86 | return schema_store |
| 82 | 87 | ||
| 83 | 88 | ||
