Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>JSON Schema PreviewNew to Visual Studio Code? Get it now.
JSON Schema Preview

JSON Schema Preview

Samuel Cardinal

|
3 installs
| (0) | Free
Preview JSON Schema documents inside VSCode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON Schema Preview

VS Marketplace Version Installs Rating CI Docs Coverage Dependabot VS Code Engine Node CodeQL Snyk OpenSSF Scorecard SLSA Level 2 Scanned with Trivy Mutation tested with Stryker Maintained with Knip Tested with fast-check TypeScript Strict Code style: Prettier Conventional Commits PRs Welcome GitHub release License: MIT

Preview, validate, and work with JSON Schemas — including private ones — right inside VS Code.

Renders schemas as clean HTML documentation.

Validates JSON, YAML, and TOML data files inline.

Handles schemas behind authentication (GitHub private repos, Artifactory, any HTTP endpoint) with zero friction.


Highlights

  • Preview — schemas rendered as live, navigable HTML documentation in a side panel.
  • Validate & bind — bind a schema to a data file (or use its inline $schema) and catch errors in the Problems panel.
  • Private schemas — authenticate against GitHub, Artifactory, or any HTTPS endpoint, and cache schemas locally so IntelliSense works too.
  • Generate — infer a schema from existing data, generate valid sample data from a schema, or generate typed code from a schema (TypeScript, Python, Go, Rust, Java, C#, and more).

📖 Full documentation & feature list — visual editing, schema catalogs, $ref navigation, bundling, diffing, linting, and more.

Supports JSON, YAML, JSONC, JSONL, and TOML formats


Getting Started

Install from the VS Code Marketplace, then open a file with a $schema field and run JSON Schema: Preview — or bind a schema to a data file and run JSON Schema: Validate This File.

Getting Started guide → — installation, requirements, and workspace trust.


Private & Authenticated Schemas

When a schema is behind authentication, VS Code's language server can't fetch it — it draws a red squiggle and IntelliSense goes dark. This extension authenticates on your behalf (GitHub OAuth, Bearer token, or Basic auth) and can cache the schema locally so the built-in language servers see it too.

Authentication guide →


Commands

All features are reachable from the Command Palette, with matching editor toolbar icons for the active file.

Full command reference →


Configuration

All settings live under the jsonschema.* namespace (User, Workspace, or Folder scope). Drop a .json-schema-preview-config.json in your workspace root to customise the json-schema-for-humans renderer.

Full settings reference →


Security, Privacy & Accessibility

  • Zero telemetry — the extension collects and transmits nothing about your usage; the only network requests it makes are the ones you trigger.
  • Hardened webviews — a nonce-based Content Security Policy and HTML-escaped schema content in every panel.
  • Offline-friendly — falls back to the last cached schema copy when the network is unreachable, and tells you it did so.
  • Accessible by default — every injected control is keyboard-operable and screen-reader-labelled; state is never colour-only.

Credits

Rendering powered by json-schema-for-humans. Code generation powered by quicktype-core (Apache License 2.0).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft