Closed benjamind closed 5 years ago
Haven't had a chance to try this yet, but the # may be necessary. It also appears as thought they pushed a fix in the vscode repo for this.
"child": {
"$ref": "./child-schema.json#"
}
https://github.com/Microsoft/vscode/commit/fb4d59aa39ed6d496f52857039ee570950dc612d
@benjamind vscode-yaml
does not appear to be affected by this issue. Switching to that extension should resolve this issue for you.
Closing, this extension was retired.
If you are using local schemas (i.e. schemas defined locally in your workspace), and have a
$ref
from one schema to another using relative paths rather than absolute http urls, then the dependent schema fails to load.The error message shown on the yaml file is:
Here's the files to reproduce, put these in a folder and open in vscode.
.vscode/settings.json:
data/test.yaml
schemas/parent-schema.json
schemas/child-schema.json