@stoplight/spectral

v4.1.1
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 --silent

build

tsc -p ./tsconfig.build.json

lint.fix

yarn lint --fix

prebuild

copyfiles -u 1 "src/rulesets/oas*/**/*.json" dist && copyfiles -u 1 "src/rulesets/oas*/**/*.json" ./

postbuild

yarn build.oas-functions && yarn compile-rulesets

test.prod

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

test.karma

karma start

test.watch

yarn test --watch

test.update

yarn test --updateSnapshot

build.binary

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

test.harness

jest -c ./jest.harness.config.js

pretest.karma

node ./scripts/generate-karma-fixtures.js

schema.update

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

inline-version

./scripts/inline-version.js

prebuild.binary

yarn build

compile-rulesets

node ./scripts/compile-rulesets.js

build.oas-functions

rollup -c

postbuild.oas-functions

copyfiles -u 1 "dist/rulesets/oas*/functions/*.js" ./
npm i @stoplight/[email protected]

Metadata

Downloads