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.

Answer from starball on Stack Overflow
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › json
Editing JSON with Visual Studio Code
November 3, 2021 - We also perform structural and value verification based on an associated JSON schema giving you red squiggles. To disable validation, use the json.validate.enable Open in VS Code Open in VS Code Insiders setting.
🌐
Joshuatz
docs.joshuatz.com › cheatsheets › js › json-schema
JSON Schema - Resources, Notes, and VSCode Tips | Joshua's Docs
They added something called JSON language indicator, which is an indicator / button in the bottom status bar - it shows you the current schema being used, and if you hover over it, even provides a link to open the exact schema definition files being used for validation. 💡 If you want the full schema name to always be displayed in the status bar, you need to pin it. Hover over the indicator, then click the pin button. Some older (and much harder) approaches can still serve some purpose, if you are looking for lower-level info. One hard way is to built VSCode from source, and debug the JSON language service.
Discussions

visual studio code - VSCode json.schemas - run validator on command line - Stack Overflow
You can see a VSCode inline warning screenshot as an example. My question is: How can I run this custom validator through the command line? Is it possible to integrate it with ESLint or something? My end goal is to integrate it on CI/CD to run during Pull Requests and log the warnings (or even mark them as errors). ... JSON Schema ... More on stackoverflow.com
🌐 stackoverflow.com
Using JSON Schema in Visual Studio Code for `ida-plugin.json`
Visual Studio Code provides out of the box support for JSON files, including features like validation and auto-completion. To enhance your experience with the ida-plugin.json file, you can use a JSON schema that defines the structure and constraints of the file. More on community.hex-rays.com
🌐 community.hex-rays.com
2
July 20, 2025
[json] schema validation in a folder of a workspace stops working when more folders are added to it
The schema validation has stopped working as if the file did not match the fileMatch in the folder settings. Removing the second folder and reloading makes it work again. As a note, if you open folder-A directly in VSCode rather than the workspace, the validation works as expected. More on github.com
🌐 github.com
13
April 21, 2022
OpenApi schema validation
So, in short, the native vscode schema validation has been a pivotal tool with our bigger declarative APIs. It is easy enough to setup file/language associations or $schema references for these individual endpoints. The problem changes when we start talking about an OpenAPI spec. Now we have many schemas for many different endpoints. As a prototype, I am able to open a json ... More on github.com
🌐 github.com
1
June 3, 2022
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
JSON Schema Diagnostics - Visual Studio Marketplace
Extension for Visual Studio Code - Validates JSON documents against schemas (up to draft/2020-12) with live diagnostics in VS Code
🌐
GitHub
github.com › remcohaszing › vscode-schemastore
GitHub - remcohaszing/vscode-schemastore: Use the JSON Schema Store catalog for JSON schema validation. · GitHub
JSON Schema Store keeps a catalog of JSON schemas of well known JSON files. Visual Studio Code supports JSON schema validation by default and allows extensions to register them, but it doesn’t use the JSON Schema Store catalog.
Starred by 33 users
Forked by 3 users
Languages   JavaScript
🌐
Stack Overflow
stackoverflow.com › questions › 72672786 › vscode-json-schemas-run-validator-on-command-line
visual studio code - VSCode json.schemas - run validator on command line - Stack Overflow
"json.schemas": [ { "fileMatch": ["src/super_jsons/**"], "url": "./.vscode/superJsonConfig.json" } ] It works fine on my JSON files, adding autocomplete (IntelliSense) and inline validation of the allowed properties.
Find elsewhere
🌐
YouTube
youtube.com › code 2020
VS Code tips — JSON schemas for IntelliSense - YouTube
Set the "$scheme" property in any json file to apply a schema to it. Schemas validate your json and provide IntelliSense while writing it.The "$schema" can b...
Published   November 15, 2020
Views   17K
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
JSON Schema Validator Blaze - Visual Studio Marketplace
Extension for Visual Studio Code - High-performance JSON Schema validator and linter for VS Code
🌐
GitHub
github.com › Karan-Palan › jsonschema-blaze-vscode
GitHub - Karan-Palan/jsonschema-blaze-vscode: High-performance JSON Schema validator and linter for VS Code powered by Blaze. · GitHub
A high-performance JSON Schema validator and linter for Visual Studio Code, powered by sourcemeta/jsonschema (a cli that uses sourcemeta/blaze).
Author   Karan-Palan
🌐
Score
docs.score.dev › docs › score-specification › ide-linter-autocomplete
IDE linter for Score's JSON schema | Score
This is required for the validation of your Score YAML files, as Visual Studio Code only supports json.schemas out of the box. To enable schema validation in your IDE, open your editor’s Settings next.
🌐
Hex-rays
community.hex-rays.com › ida general
Using JSON Schema in Visual Studio Code for `ida-plugin.json` - IDA General - Hex-Rays Community forum
July 20, 2025 - Visual Studio Code provides out of the box support for JSON files, including features like validation and auto-completion. To enhance your experience with the ida-plugin.json file, you can use a JSON schema that defines …
🌐
Frontaid
frontaid.ch › blog › json-schema-vscode
How to set up JSON Schema with VSCode
Then open the IDE settings and search for "JSON Schema". Find "JSON: Schemas" and click on "Edit in settings.json". The settings.json will be opened with the corresponding setting already prefilled. The fileMatch property is a list of file name patters that should be validated against the schema.
🌐
Visual Studio Magazine
visualstudiomagazine.com › articles › 2018 › 02 › 01 › validating-json.aspx
Validating JSON with JSON Schema -- Visual Studio Magazine
February 13, 2018 - Regardless of how you load the two objects, to check that the JSON document is valid against the schema, you call the JObject's IsValid method passing the JSchema object and a collection declared as an IList of String.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
JSON Validate - Visual Studio Marketplace
Extension for Visual Studio Code - Validate JSON when part of other files as strings.
🌐
GitHub
github.com › microsoft › vscode › issues › 147865
[json] schema validation in a folder of a workspace stops working when more folders are added to it · Issue #147865 · microsoft/vscode
April 21, 2022 - { "$schema": "http://json-schema.org/draft-07/schema#", "title": "Test", "description": "An example schema", "type": "object", "properties": { "requiredProperty": { "type": "string" } }, "required": [ "requiredProperty" ] } Check that the test.json file is being validated correctly. Add a second folder to the workspace. In my test I added an empty folder in the same root as the workspace. The validation still works as expected. Reload the window or close/open VSCode.
Author   Git-GoR
🌐
GitHub
github.com › microsoft › vscode-json-languageservice › issues › 162
OpenApi schema validation · Issue #162 · microsoft/vscode-json-languageservice
June 3, 2022 - Add a function/parameter to the text document or json language server to specify the exact json schema to validate the document with.
Author   DumpySquare
🌐
Read the Docs
vscode-docs.readthedocs.io › en › stable › languages › json
Json - vscode-docs
We also perform structural and value verification based on an associated JSON schema giving you red squigglies.