@stoplight/spectral

v4.0.0-beta1
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

sl-scripts build && node ./scripts/prepare-cli

commit

git-cz

release

sl-scripts release

lint.fix

yarn lint --fix

postbuild

yarn copy.rulesets --verbose

test.prod

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

test.watch

yarn test --watch

test.update

yarn test --updateSnapshot

build.binary

yarn build && yarn build.manifest && cp yarn.lock dist && cd dist && yarn && pkg . --out-path ./bin

copy.rulesets

copyfiles -u 1 "src/**/ruleset.json" dist

schema.update

yarn typescript-json-schema --id "http://stoplight.io/schemas/rule.schema.json" --required tsconfig.json IRule --out ./src/meta/rule.schema.json

build.manifest

cd dist && oclif-dev manifest

release.dryRun

sl-scripts release --dry-run --debug
npm i @stoplight/[email protected]

Metadata

Downloads