wework / speccy

Well Spectually 🤓 Enforce quality rules on your OpenAPI 3.0.x specifications.
http://speccy.io
MIT License
825 stars 78 forks source link

feature: Lint multiple OAS files with glob syntax #118

Open Shockolate opened 6 years ago

Shockolate commented 6 years ago

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.

philsturgeon commented 6 years ago

This is a great suggestion! PR's welcome. :)

luk355 commented 4 years ago

@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!

philsturgeon commented 4 years ago

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.

luk355 commented 4 years ago

Perfect, thanks for your reply. We will look at migrating over to Spectral.