Real-time OpenAPI specification evaluation for VS Code.
- 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
Download the latest .vsix from Releases and install:
code --install-extension restlens-x.x.x.vsix- Run
REST Lens: Sign Infrom the command palette - Authorize in browser and select a project
- Open an OpenAPI file (YAML/JSON)
- Violations appear in the Problems panel
- VS Code 1.85.0+
- REST Lens account (https://restlens.com)
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 |
REST Lens: Sign In- AuthenticateREST Lens: Sign Out- Sign outREST Lens: Evaluate- Manual evaluationREST Lens: Select Project- Change projectREST Lens: Clear Cache- Clear cached results
npm install
npm run buildSee CONTRIBUTING.md for development guidelines.
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.0GPL-3.0 - See LICENSE