Skip to content

Edthing/restlens-ide

Repository files navigation

REST Lens IDE

Real-time OpenAPI specification evaluation for VS Code.

Features

  • Real-time validation: See REST API design violations as you write OpenAPI specs
  • Inline diagnostics: Violations appear directly in your editor
  • Severity-based colors: Status bar reflects error/warning/info severity
  • 25+ built-in rules: REST API best practices based on research
  • Custom rules: Organization-specific rules supported
  • OAuth authentication: Secure browser-based authentication
  • Project-based: Inherits rules from your REST Lens projects

Installation

Download the latest .vsix from Releases and install:

code --install-extension restlens-x.x.x.vsix

Quick Start

  1. Run REST Lens: Sign In from the command palette
  2. Authorize in browser and select a project
  3. Open an OpenAPI file (YAML/JSON)
  4. Violations appear in the Problems panel

Requirements

Configuration

Project settings are stored in .vscode/settings.json (auto-configured when selecting a project):

{
  "restlens.organization": "my-org",
  "restlens.project": "my-api"
}

User settings:

Setting Default Description
restlens.evaluateOnSave true Evaluate on save
restlens.evaluateOnType false Evaluate while typing
restlens.debounceMs 1000 Debounce delay (ms)
restlens.includeInfoSeverity false Show info-level violations

Commands

  • REST Lens: Sign In - Authenticate
  • REST Lens: Sign Out - Sign out
  • REST Lens: Evaluate - Manual evaluation
  • REST Lens: Select Project - Change project
  • REST Lens: Clear Cache - Clear cached results

Development

npm install
npm run build

See CONTRIBUTING.md for development guidelines.

CI/CD

The extension is built automatically on push to main and on tags:

  • Artifacts: Available for 30 days on every build
  • Releases: Created automatically when pushing a v* tag

To release a new version:

git tag v0.1.0
git push origin v0.1.0

License

GPL-3.0 - See LICENSE

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published