Use relative paths for schemas, instead of $id. Enables VScode validation. (#25251)

This commit is contained in:
Nick Brassel 2025-05-19 22:10:39 +10:00 committed by GitHub
parent f686ad9e63
commit 919e2a4f5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 197 additions and 169 deletions

View file

@ -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