daveshanley / vacuum

vacuum is the worlds fastest OpenAPI 3, OpenAPI 2 / Swagger linter and quality analysis tool. Built in go, it tears through API specs faster than you can think. vacuum is compatible with Spectral rulesets and generates compatible reports.
https://quobix.com/vacuum
MIT License
490 stars 39 forks source link

v0.5.0 #370

Closed daveshanley closed 7 months ago

daveshanley commented 7 months ago

the lint command now supports multi-file linting, accepts glob commands and the console output is upgraded, cleaner and more readable.

Also addresses issues

The partial support for filepath works correctly for single file specs, but won't yet report the correct filename for exploded specs. References will won't yet align if they have been pulled in from an external document. Support for this is coming in a later release.

The --remote / -u flag is now true always for the lint command. It's always on, it can't be turned off. This is expected behavior, always try to resolve remote / file based references, turning it off seems pointless.

To lint multiple files, simply add them one after the other:

vacuum lint file1.yaml file2.json file3.yaml

To use a glob pattern:

vacuum lint path/to/files/*.yaml

Linting multiple files

Screenshot 2023-11-17 at 6 11 36 PM

Updated summary view, cleaner, easier to read

Screenshot 2023-11-17 at 6 13 30 PM

Screenshot 2023-11-17 at 6 13 44 PM

Improved logging output, no more JSON on the command line

Screenshot 2023-11-17 at 6 14 21 PM

Links are clickable when viewing in an IDE terminal

Screenshot 2023-11-17 at 6 27 25 PM