https://github.com/erwinkramer/ado-spectral
Azure Pipelines Spectral Lint Task
https://github.com/erwinkramer/ado-spectral
api apim linter linting openapi openapi3 spectral
Last synced: 5 months ago
JSON representation
Azure Pipelines Spectral Lint Task
- Host: GitHub
- URL: https://github.com/erwinkramer/ado-spectral
- Owner: erwinkramer
- License: other
- Created: 2025-04-04T08:03:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-12T18:49:38.000Z (6 months ago)
- Last Synced: 2025-09-01T18:43:53.488Z (5 months ago)
- Topics: api, apim, linter, linting, openapi, openapi3, spectral
- Language: JavaScript
- Homepage: https://www.guanchen.nl
- Size: 23.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Pipelines Spectral Lint Task 👒
[![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]

## Introduction
This is the repo for the source code of the [Spectral Lint Task](https://marketplace.visualstudio.com/items?itemName=erwinkramer.SpectralLint) 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
1. Update the version numbers at [vss-extension.json](/vss-extension.json) and [task.json](/tasks/SpectralLintTaskV0/task.json).
2. Create the extension file (requires `npm i -g tfx-cli`):
```
tfx extension create --manifest-globs vss-extension.json --output-path releases
```
3. [Add to the marketplace](https://marketplace.visualstudio.com/manage/publishers/erwinkramer).
## Design
Follows tips from: https://www.paraesthesia.com/archive/2020/02/25/tips-for-custom-azure-devops-build-tasks/
## License
This work is licensed under a
[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][cc-by-nc-sa].
[![CC BY-NC-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]
[cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/
[cc-by-nc-sa-image]: https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png
[cc-by-nc-sa-shield]: https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg