This is a VSCode extension that allows you to use the world's fastest OpenAPI linter inside VSCode.
If you don't have vacuum installed, make sure you do that first (requires v0.9.1 or later).
vacuumdoes not come bundled with the plugin.
npm install -g @quobix/vacuumOr via yarn using yarn global add @quobix/vacuum
You can also use homebrew to install vacuum on MacOS X
brew install daveshanley/vacuum/vacuumSee more installation options.
vacuum starts automatically when you open YAML or JSON files.
You can also open up the command palette and type vacuum and select Lint OpenAPI using vacuum.
YAML and JSON files will be automatically detected (if they are OpenAPI) and linted using vacuum.
If you want to disable vacuum, open up the command palette and type vacuum and select Stop Linting OpenAPI using vacuum.
The extension uses the vacuum executable installed on your machine. If VSCode cannot find vacuum on PATH, set vacuum.executablePath to the full path of the executable.
To configure vacuum to use your own rules, rulesets and custom functions, you can provide a configuration file.
You can also configure the extension from VS Code:
- Open the command palette.
- Run
Select vacuum RulesetorSelect vacuum Ignore File. - Pick the ruleset or ignore file to save it into the workspace settings.
The extension supports these workspace settings:
{
"vacuum.ruleset": "path/to/ruleset.yaml",
"vacuum.ignoreFile": "path/to/ignore.yaml",
"vacuum.functions": "path/to/functions",
"vacuum.base": "path/to/api/root",
"vacuum.remote": true,
"vacuum.skipCheck": false,
"vacuum.timeout": 5,
"vacuum.lookupTimeout": 500,
"vacuum.hardMode": false,
"vacuum.extensionRefs": false
}Configuration changes are sent to the running language server and open documents are linted again automatically.
Learn more about vacuum by visiting the vacuum documentation.
