mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Use relative paths for schemas, instead of $id. Enables VScode validation. (#25251)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user