Troubleshooting
Start here: the extension logs everything it does — render failures, fetch errors, cache decisions — to a dedicated "JSON Schema Preview" channel in the Output panel (Ctrl+Shift+U, then pick it from the dropdown).
My file isn't recognised as a schema
The toolbar icons, the linter and the schema commands appear only for documents recognised as schemas. A document is a schema when any of these hold:
- Its
$schemapoints at the JSON Schema meta-schema (https://json-schema.org/draft/2020-12/schemaand friends). - Its file name looks like one:
*.schema.json,*.schema.yaml,*.schema.ymlorschema.json. - Its root object declares
propertiesand either a$defs/definitionsblock ortype: "object".
A bare properties key is deliberately not enough — that shape is common in ordinary configuration files.
The one thing that always wins: a document whose $schema points at something other than the meta-schema is a data file bound to a schema, not a schema. That is true regardless of its name or shape — it is what makes inline binding work.
So if your schema isn't recognised, either rename it to *.schema.json, or add its $schema line — the linter offers Insert $schema Declaration as a quick fix.
The preview says Python is missing
Python is optional. Set jsonschema.preview.renderer to "builtin" to always use the dependency-free built-in renderer and skip the interpreter probe and install prompt entirely.
Left at its default ("auto") the preview still renders without Python — just with a simpler layout. If you want the richer json-schema-for-humans output, install it yourself:
python3 -m pip install --user json-schema-for-humans
# or, in a virtual environment:
python3 -m venv .venv && .venv/bin/pip install json-schema-for-humansI get a red squiggle on $schema and no IntelliSense
That is VS Code's own JSON language server failing to fetch a schema it can't authenticate to. The extension can fetch it for you:
- JSON Schema: Configure Schema Authentication… — GitHub OAuth, a Bearer token, or Basic auth.
- JSON Schema: Cache Schema Locally — downloads it and repoints the
json.schemas/yaml.schemasentry at the local copy, so the built-in language servers read it too.
See Authentication.
VS Code shows its own schema status next to mine
VS Code's built-in JSON support contributes a language status item called JSON Validation Status, whose text is Schema validated or No schema validation. It says roughly what this extension's own status bar item already says, and it can be much wider.
There is no json.* setting that turns it off — but it is almost certainly only taking up room because it has been pinned. By default every language status item collapses into a single compact icon next to the language mode indicator; pinning one gives it a full-width status bar entry showing its whole text. The pin button sits inside the hover you would open to inspect the schema, so it is easy to hit by accident.
To put it back:
- Click the language status icon in the status bar to open its hover.
- Next to JSON Validation Status, click the filled pin — its tooltip reads Remove from Status Bar.
Right-clicking the status bar and unchecking JSON Validation Status (Language Status) does the same thing, because hiding a pinned entry also unpins it.
To hide language status for every language — TypeScript, ESLint and the rest, not just JSON — right-click the status bar and uncheck Editor Language Status instead.
This is a UI toggle, not a setting
VS Code stores the pin state in profile storage, not in settings.json, so it cannot be committed to a workspace or shared through .vscode/settings.json. It does travel with Settings Sync.
This extension's own two entries are named JSON Schema Binding and JSON Schema Authentication, so you can hide either one individually from the same status bar right-click menu.
Validation says "no schema bound" but the file has $schema
Check that the $schema value resolves. A relative path is resolved against the data file's directory, not the workspace root. Ctrl+click it: if it doesn't navigate, it doesn't resolve.
Commands are missing in an untrusted workspace
Preview, inline binding, bundling and code generation are disabled in Restricted Mode by design — see Workspace Trust. Trust the folder to get them back.
Validation is slower than I expect on a big workspace
Validate Workspace caps its scan at jsonschema.workspaceValidation.maxFiles (default 2000), skips files over 1 MiB, and respects files.exclude / search.exclude. The report says when it truncated.
The status bar or hover is slow on a very large YAML file
To find a YAML file's inline binding, the extension parses the whole document unless the # yaml-language-server: $schema=... directive comes first, preceded only by blank lines, comments, % directives or --- markers. Move the directive to the top of a large file to skip that parse. A plain $schema: key always needs the parse.
A remote schema seems out of date
The local cache is not revalidated automatically unless you ask it to be. Either run JSON Schema: Refresh Schema Cache, or set jsonschema.cache.autoRefresh to onOpen or daily.
An AI command does nothing
AI assistance is off by default. Set jsonschema.ai.enabled to true, or accept the prompt the command shows. If it is on and you still get "no language model is available", sign in to a provider (for example GitHub Copilot) — this extension deliberately ships no model of its own. See AI assistance.
Something else
Check the Output channel first, then open an issue with the log excerpt and a minimal schema that reproduces it.