question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

documentation -- schema relative path isn't clear

See original GitHub issue

The 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
JPinkneycommented, Mar 10, 2019

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:

"yaml.schemas": {
        "file:///Users/joshpinkney/Documents/custom-tags/yaml-language-server/testing/composer.json": "/test2.yaml"
    }
0reactions
AckslDcommented, Nov 22, 2022

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

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found