Use relative paths for schemas, instead of $id. Enables VScode validation. (#25251)
This commit is contained in:
parent
f686ad9e63
commit
919e2a4f5c
9 changed files with 197 additions and 169 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue