If you want to use a relative path to something in a workspace folder for the url property of a JSON schema setting item, you need to define that setting in the workspace settings (<workspace-folder-path>/.vscode/settings.json) instead of in the user settings. Related docs are here.
If you insist to define it in the user settings.json, I think you need to use an absolute path.
I think this is a sensible design. User settings apply to all workspaces, so if if relative paths were supported there, it would be an assumption that every single folder you open as a workspace would have a schema file that you'd want to use at such a path (presumably relative to the workspace folder, which I think would be a rather poor assumption, or lead to surprising users (in a bad way)).
Also note that if you want to specify schema files on a per-JSON-file-basis, you can use the $schema property in the JSON file you want to be validated to specify the schema to use.
visual studio code - VSCode json.schemas - run validator on command line - Stack Overflow
visual studio code - VSCode dynamic JSON schema validation - Stack Overflow
visual studio code - How does vscode support automatic json validation using https://schemastore.org/json/? - Stack Overflow
How do I configure VS Code to enable code completion on .json files (jsonschema support)? - Stack Overflow
Videos
The association of JSON schemas to files is done in the settings (File, Preferences, User Settings or Workspace Settings), under the property 'json.schemas'.
This is an example how the JSON schema for bower is associated to the bower schema.
"json.schemas": [
{
"fileMatch": [
"/bower.json",
"/.bower.json"
],
"url": "http://json.schemastore.org/bower"
},
...
You can also use schemas located in your workspace or define a schema right in the settings itself. Check https://code.visualstudio.com/docs/languages/json for examples.
You can refer your JSON Schema in $schema node and get your intellisense in VS Code right away. No need to configure anywhere else.
For example,
{
"$schema": "http://json.schemastore.org/coffeelint",
"line_endings": "unix"
}

This is the intellisense I was talking about. JSON Schema has the list of possible JSON properties in your current cursor position and VS Code can pull out that list of intellisense.
Note that, every official JSON should have a concrete JSON Schema to prove the data integrity. This answer is still valid!


