https://github.com/spectralops/spectral-example-json-output
Spectral With JSON Output
https://github.com/spectralops/spectral-example-json-output
Last synced: 5 months ago
JSON representation
Spectral With JSON Output
- Host: GitHub
- URL: https://github.com/spectralops/spectral-example-json-output
- Owner: SpectralOps
- Created: 2020-04-20T13:29:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T07:18:21.000Z (over 2 years ago)
- Last Synced: 2025-07-25T18:11:47.155Z (7 months ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spectral With JSON Output
In this example you'll see how to use a JSON output in addition to your regular stylish reporter.
This is great for cases where you want to ship logs to your SIEM system or your log management service.
Look in [.spectral/spectral.yaml](.spectral/spectral.yaml):
reporter:
outputs:
stylish: {} # nice looking CLI reports
log: # use a logger
json: true # enable JSON logging
file: out.json # put output in a file