Azure Pipelines Spectral Lint Task ๐
January 30, 2026 ยท View on GitHub
Introduction
This is the repo for the source code of the Spectral Lint Task in the Visual Studio Marketplace.
Status
Currently there is only a version 0, that has been minimally tested.
Building and local testing
cd tasks/SpectralLintTaskV0
$env:INPUT_ruleset=".spectral/demo-ruleset.yaml"
$env:INPUT_definition="https://petstore3.swagger.io/api/v3/openapi.json"
$env:INPUT_failSeverity="error"
$env:INPUT_outputFilePath=".spectral/demo-lint-report.json"
$env:INPUT_outputFormat="json"
tsc
node index.js
Releasing
-
Update the version numbers at vss-extension.json and task.json.
-
Create the extension file (requires
npm i -g tfx-cli):tfx extension create --manifest-globs vss-extension.json --output-path releases
Design
Follows tips from Travis Illig.
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
