speccy icon indicating copy to clipboard operation
speccy copied to clipboard

feature: Lint multiple OAS files with glob syntax

Open Shockolate opened this issue 6 years ago • 4 comments

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.

Shockolate avatar Aug 08 '18 19:08 Shockolate

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

philsturgeon avatar Aug 08 '18 20:08 philsturgeon

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

luk355 avatar Aug 11 '20 08:08 luk355

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.

philsturgeon avatar Aug 11 '20 09:08 philsturgeon

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

luk355 avatar Aug 19 '20 08:08 luk355