documentation -- schema relative path isn't clear
See original GitHub issueThe readme says
Your schema must be a relative path and not an absolute path
Relative to what? The yaml file being edited? The settings.json file? (I have a project where my yaml is in one git repo, and the schema is in another git repo – so, need to traverse folder paths – would be nice to have an example to follow!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Relative $schema URIs should be resolved against the file's ...
However, relative schema URIs are being resolved against the cwd (line 47 in schema.ts). This makes sense for schemas defined in .eslintrc, but ......
Read more >196353 – [URI resolver] Schema Not loaded for XML ... - Bugs
Actually, I think the situation isn't with the relative paths per say, but having to do with projects that are imported by reference...
Read more >How to use relative file paths in JSON-LD - Stack Overflow
I want to design a JSON-LD based schema for describing datasets. Similar to COCO data structure. However I can't use COCO for this ......
Read more >pathnames explained: absolute, relative, unc, and url
To store as relative paths, right-click the tool and click the General tab. At the bottom of the dialog box, check Store relative...
Read more >How to convert an absolute path database into a relative path ...
Once the absolute path is written into the database Control Area (.db file), the database will then remain an absolute path database.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For some reason I thought that wouldn’t work but indeed it does! So it looks like its time for me to change the docs a bit 😄.
I was able to get it working by doing:
@nkakouros Sorry to write in a closed issue but was just wondering if this worked for you? When I specify a global schema it seems it’s applied to all files even if they don’t match glob. If it’s a relative to file or root then this does not happen. Have you perhaps seen something similar?