npm / @stoplight/spectral-core
@stoplight/spectral-core
What changed in @stoplight/spectral-core 6, from its official release notes, upgrade guides and advisories. Also covers @stoplight/spectral-formats, @stoplight/spectral-ruleset-bundler. Sources checked 2026-10-19.
1 breaking1 security3 new APIs and options2 behavior and defaults1 tooling10 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@stoplight/spectral-core 618 changes
Breaking changes 1
Throws an error when no file is found to lint, rather than proceeding without a file.
Security 1
Fixes a security issue in simple-eval.
New APIs and options 3
Adds documentUrl to the JavaScript API and CLI formatters.
Adds and exports the or function for use in Spectral rulesets.
Rulesets can be extended with aliases.
Behavior and default changes 2
Updated AsyncAPI support to 3.1.0, so developers can use the newer specification version.
YAML and JSON ruleset validation errors now include a line number.
Tooling 1
Scarf telemetry was added to core.
Fixes and other changes 10
The GitHub format now includes ruleset-based documentationUrl values.
Markdown output now includes all results, so findings are no longer omitted from the formatted report.
Adds OAS 3.2 support by fixing schema validation and aligning it with 3.0 and 3.1.
JSON Schemas used for rulesets are now valid, improving validation of ruleset configuration.
Restores a null guard in the rule, preventing failures when checking duplicated enum entries.
Fixes rendering of documentationUrl in GitHub Actions output.
The markdown formatter no longer crashes when it encounters an invalid reference.
Intermediate rulesets now respect off severity.
Fixes handling of relative references in externalValue.
Fixes output truncation when the output is too long.