Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Swagger LensNew to Visual Studio Code? Get it now.
Swagger Lens

Swagger Lens

Catomak

|
10 installs
| (0) | Free
Swagger preview and semantic OpenAPI diffs with efficient shared-schema imports for macOS, Windows, and Linux.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Swagger Lens

Swagger preview and semantic OpenAPI diffs in VS Code.

  • OpenAPI 3.0.x / 3.1.x in JSON and YAML.
  • Highlight affected endpoints, nested schema changes, and before/after values.
  • Import shared schemas from neighboring files, loading only referenced fragments and dependencies.
  • Try it out in Preview; light and dark themes.
  • macOS Intel/Apple Silicon, Windows and Linux x64/ARM64.

Quick start

  1. Install Swagger Lens.
  2. Open a saved contract and click the editor's preview button, or run Swagger Lens: Open Swagger Preview.
  3. Switch to Diffs to review changes. Use Changes only to filter operations and Base to select a Git revision (default: HEAD).

Opening from a VS Code comparison editor compares its left and right versions. Saving a contract or referenced schema refreshes the preview automatically.

Preview works without Git. Diffs use saved versions and disable API requests. Local file $ref imports are supported; HTTP schema references are not loaded.

Documentation

Usage and limitations · Builds and tests · Test contracts · Changelog

Powered by Swagger UI, oasdiff, and the Inditex diff plugin.

Apache-2.0 · Third-party notices

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft