Repository navigation
fix(deps): pin @stoplight/spectral-rulesets to 1.22.2 - #329
Merged
Merged
Conversation
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
This was referenced Jun 11, 2026
Closed
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
bug
What this PR does / why we need it:
Pins
@stoplight/spectral-rulesetsto1.22.2viaoverrides. A recent lockfile regeneration pulled1.22.3, which crashes Spectral (exit 2,Cannot read properties of null (reading 'enum')) on any r4 spec containing a literalnullvalue — an upstream regression (stoplightio/spectral#2934 dropped a null guard induplicated-entry-in-enum).1.22.2is 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
Additional documentation
This section can be blank.