Skip to content

SpectralOps/spectral-example-json-output

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

reporter:
    outputs:
        stylish: {}        # nice looking CLI reports
        log:               # use a logger
            json: true     # enable JSON logging
            file: out.json # put output in a file

About

Spectral With JSON Output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages