@stoplight/spectral

v0.0.0
A flexible object linter with out of the box support for OpenAPI v2 and v3.
json linter linter json validator validator OpenAPI Swagger schema API

lint

tslint 'src/**/*.ts'

test

jest

build

tsc -p ./tsconfig.build.json

commit

git-cz

lint.fix

yarn lint --fix

postbuild

copyfiles -u 1 "src/**/ruleset.json" dist && oclif-dev manifest

test.prod

yarn build && yarn lint && yarn test --coverage --maxWorkers=2

test.watch

yarn test --watch

test.update

yarn test --updateSnapshot

build.binary

pkg . --targets linux,macos --out-path ./binaries

schema.update

yarn typescript-json-schema --id "http://stoplight.io/schemas/rule.schema.json" --required tsconfig.json IRule --out ./src/meta/rule.schema.json
npm i @stoplight/[email protected]

Metadata

Downloads