Skip to content

fix(deps): pin @stoplight/spectral-rulesets to 1.22.2 - #329

Merged
hdamker merged 1 commit into
camaraproject:mainfrom
hdamker:fix/pin-spectral-rulesets
Jun 11, 2026
Merged

hdamker merged 1 commit into
camaraproject:mainfrom
hdamker:fix/pin-spectral-rulesets

Conversation

@hdamker

@hdamker hdamker commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

bug

What this PR does / why we need it:

Pins @stoplight/spectral-rulesets to 1.22.2 via overrides. A recent lockfile regeneration pulled 1.22.3, which crashes Spectral (exit 2, Cannot read properties of null (reading 'enum')) on any r4 spec containing a literal null value — an upstream regression (stoplightio/spectral#2934 dropped a null guard in duplicated-entry-in-enum). 1.22.2 is the last pre-regression release.

Which issue(s) this PR fixes:

Fixes #328

Special notes for reviewers:

Dependency-only (validation/package.json + lockfile). Verified: the previously-crashing spec lints clean (17 findings), and the spectral golden suites pass (128). 1.22.4 (latest) still crashes; upstream fix PRs are unmerged — drop the pin once a fixed release ships (track stoplightio/spectral#2959).

Changelog input

 release-note
Pin spectral-rulesets to 1.22.2 to avoid an upstream null-value crash in r4 validation

Additional documentation

This section can be blank.

docs

rulesets 1.22.3 (pulled in by the redocly/cli lockfile regen) crashes Spectral on
r4 specs with null example values — upstream regression stoplightio/spectral#2934
dropped a null guard in duplicated-entry-in-enum. 1.22.2 is the last pre-regression
release; drop the pin once a fixed release ships.

Fixes camaraproject#328
@hdamker
hdamker requested review from Kevsy and rartych as code owners June 10, 2026 21:16
@hdamker
hdamker merged commit 144de38 into camaraproject:main Jun 11, 2026
@hdamker
hdamker deleted the fix/pin-spectral-rulesets branch June 11, 2026 05:12
hdamker added a commit that referenced this pull request Aug 5, 2026
Upstream shipped the null-guard fix (stoplightio/spectral#2960) in
1.22.7, so the 1.22.2 pin from #329 is no longer needed. Lockfile now
resolves and hoists a single 1.22.7 copy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

r4 validation crashes on null example values — pin @stoplight/spectral-rulesets to 1.22.2

1 participant