Skip to content

fix(rulesets): fix handling relative references in externalValue#2944

Merged
tomek-tursa-sb merged 2 commits into
stoplightio:developfrom
samdbmg:fix/relative-references-externalValue
Apr 21, 2026
Merged

fix(rulesets): fix handling relative references in externalValue#2944
tomek-tursa-sb merged 2 commits into
stoplightio:developfrom
samdbmg:fix/relative-references-externalValue

Conversation

@samdbmg

@samdbmg samdbmg commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #2819

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

If indicated yes above, please describe the breaking change(s).

Remove this quote before creating the PR.

samdbmg added 2 commits April 17, 2026 16:30
Adds a test using an example object with an `externalValue` containing a
relative reference.
OpenAPI 3.1.0 allowed `externalValue` in an examples object to be a
relative reference. This makes that permitted by the ruleset.

Fixes #2819
@samdbmg samdbmg requested a review from a team as a code owner April 17, 2026 15:31
@tomek-tursa-sb tomek-tursa-sb changed the title Fix handling relative references in externalValue fix(rulestes): fix handling relative references in externalValue Apr 21, 2026
@tomek-tursa-sb tomek-tursa-sb changed the title fix(rulestes): fix handling relative references in externalValue fix(rulesets): fix handling relative references in externalValue Apr 21, 2026
@tomek-tursa-sb tomek-tursa-sb merged commit 6666ccc into stoplightio:develop Apr 21, 2026
8 checks passed
@samdbmg samdbmg deleted the fix/relative-references-externalValue branch April 21, 2026 12:54
stoplight-bot pushed a commit that referenced this pull request May 12, 2026
## @stoplight/spectral-rulesets [1.22.2](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-rulesets-1.22.1...@stoplight/spectral-rulesets-1.22.2) (2026-05-12)

### Bug Fixes

* **rulesets:** fix handling relative references in externalValue ([#2944](#2944)) ([6666ccc](6666ccc)), closes [#2819](#2819)
stoplight-bot pushed a commit that referenced this pull request May 12, 2026
# [6.16.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-cli-6.15.1...@stoplight/spectral-cli-6.16.0) (2026-05-12)

### Bug Fixes

* **deps:** post lodash update changes for semantic release ([#2942](#2942)) ([bf530dd](bf530dd))
* **rulesets:** fix handling relative references in externalValue ([#2944](#2944)) ([6666ccc](6666ccc)), closes [#2819](#2819)

### Features

* **core:** add error line number for yaml and json ruleset validation ([#2945](#2945)) ([04c1db3](04c1db3))
@stoplight-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.22.2 🎉

The release is available on @stoplight/spectral-rulesets-1.22.2

Your semantic-release bot 📦🚀

stoplight-bot pushed a commit that referenced this pull request May 12, 2026
# [1.23.0](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-core-1.22.0...@stoplight/spectral-core-1.23.0) (2026-05-12)

### Bug Fixes

* **deps:** post lodash update changes for semantic release ([#2942](#2942)) ([bf530dd](bf530dd))
* **rulesets:** fix handling relative references in externalValue ([#2944](#2944)) ([6666ccc](6666ccc)), closes [#2819](#2819)

### Features

* **core:** add error line number for yaml and json ruleset validation ([#2945](#2945)) ([04c1db3](04c1db3))
stoplight-bot pushed a commit that referenced this pull request May 21, 2026
## [1.12.1](https://github.com/stoplightio/spectral/compare/@stoplight/spectral-ruleset-migrator-1.12.0...@stoplight/spectral-ruleset-migrator-1.12.1) (2026-05-21)

### Bug Fixes

* **deps:** post lodash update changes for semantic release ([#2942](#2942)) ([bf530dd](bf530dd))
* **ruleset-migrator:** handle non function objects returned by requireResolve ([#2957](#2957)) ([60c6c56](60c6c56))
* **rulesets:** exclude non-schema enum properties from duplicated-entry-in-enum rule ([#2934](#2934)) ([a7822fa](a7822fa)), closes [#2199](#2199)
* **rulesets:** fix handling relative references in externalValue ([#2944](#2944)) ([6666ccc](6666ccc)), closes [#2819](#2819)

### Features

* **core:** add error line number for yaml and json ruleset validation ([#2945](#2945)) ([04c1db3](04c1db3))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

externalValue doesn't permit for relative references

3 participants