The fastest way to see something useful is to print something out to the console.
This will print a summary of your linting results. The
lint command will use the
Just want to try things out?
If you don’t have an OpenAPI spec and you want to see something, you can run it against one of the test specifications. A good one to try is the petstorev3.json specification.
Linting multiple files
lint command accepts multiple OpenAPI files as inputs, either as a glob pattern, or as a list of files.
Or as a glob pattern
lint supports the following flags
||Show full details of the linting report|
||Show no output, except for the linting result|
||Set the level at which an error return code is thrown (defaults to
||Disable color and style console output (useful for CI/CD)|
||Show help screen and all flag details|
lint supports the following global flags
||Use an existing ruleset file for linting|
||Show how long it took to lint the spec in (ms)|
||Base URL or Base working directory to use for relative references|
||Load remote references automatically if possible (default is true)|
||Skip checking for a valid OpenAPI document, useful for linting fragments or non-OpenAPI documents|
Full flags begin with a double hyphen.
Want something easy to copy and paste?