speccy
speccy copied to clipboard
feature: Lint multiple OAS files with glob syntax
Detailed description
The user should be able to provide a glob as the file parameter and have the linter run on each of the files returned from the glob command.
Not sure if this is a bug or enhancement for if a glob is given to the linter, it will lint the first file returned from the command.
Given a package structure like this:
v1/
openapi.yaml
v2/
openapi.yaml
package.json
The linter should be able to lint each file when given the command: speccy lint **/openapi.yaml
.
Currently, only v1/openapi.yaml
is linted.
Context
We have folders where we separate versions of our API. We'd like to be able to lint each specification without hardcoding our versions in our scripts.
This is a great suggestion! PR's welcome. :)
@philsturgeon, any idea when you will be able to integrate the open PR? Would be cool to lint multiple files by using glob syntax. Thanks!
I left WeWork and Speccy early 2019 so I can’t help you here, I’m not sure what’s going on with this but it seems like not much.
This feature is available in Spectral, a complete replacement for Speccy that does a whole lot more too.
Perfect, thanks for your reply. We will look at migrating over to Spectral.