A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI v3.1, v3.0, and v2.0 as well as AsyncAPI v2.x.
APACHE-2.0 License
Bot releases are visible (Hide)
example-value-or-externalValue
rule and introduce oas3-examples-value-or-externalValue
#883, #1098
--show-unmatched-globs
flag #747
typed-enum
function is no longer a built-in function. It's been migrated into a custom function of the OpenAPI ruleset #924
openapi-tags
rule has been fixed to make it fit its description #1038
typed-enum
rule to detect enum value that do not respect specified type #913
oas3-operation-security-defined
rule supports optional authentication #895
example-value-or-externalValue
no longer reports false positives #899
schema-path
accepts a JSON Path expression as a field selector #917
schema-path
handles invalid values gracefully #917
oas3-valid-(content-)schema-example
rules handle nullable correctly #914
operation-tag-defined
#704
example-value-or-externalValue
and openapi-tags
, are now included in the recommended rulset #725 #706
model-description
and operation-summary-formatted
rules have been removed #725
when
rule property has been removed #585
--fail-severity
is now error
, so getting a warn
, info
or a hint
will not return a exit status code #706
rules
property #652
{{value}}
and {{path}}
can be used in messages #520 #572
when
Rule property is deprecated #585
alphabetical
function are more meaningful #613
oasPathParam
function #537
--verbose
flag #435
schema
function can validate falsy values 10e5d1c
schema
function can validate Draft 6 and Draft 7 JSON Schemas ea2ddff
info
and hint
severity levels correctly #565
Published by stoplight-bot about 5 years ago
v4.2.0-beta1
Published by stoplight-bot about 5 years ago
CLI: missing tslib #524
Published by stoplight-bot about 5 years ago
Spectral#loadRuleset
methodSpectral#runWithResolved
method #398
addRules
and addFunctions
have been deprecated, use setRules
and setFunctions
instead#loadRuleset
insteadPublished by stoplight-bot about 5 years ago