diff options
author | Nick Brassel <[email protected]> | 2025-05-19 22:10:39 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2025-05-19 22:10:39 +1000 |
commit | 919e2a4f5c1fb8cb3a0bd465091a31ae98486546 (patch) | |
tree | 8b0114ec0ca90724a5f12e217219c27cc576b4d1 /lib/python | |
parent | f686ad9e6361e05fcfa78f453f90cd72181a7516 (diff) | |
download | qmk_firmware-919e2a4f5c1fb8cb3a0bd465091a31ae98486546.tar.gz qmk_firmware-919e2a4f5c1fb8cb3a0bd465091a31ae98486546.zip |
Use relative paths for schemas, instead of $id. Enables VScode validation. (#25251)
Diffstat (limited to 'lib/python')
-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(): 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 |