Skip to content

feat(core): add error line number for yaml and json ruleset validation#2945

Merged
tomek-tursa-sb merged 2 commits into
developfrom
feat/add-error-line-number-for-yaml-and-json-validation
May 7, 2026
Merged

feat(core): add error line number for yaml and json ruleset validation#2945
tomek-tursa-sb merged 2 commits into
developfrom
feat/add-error-line-number-for-yaml-and-json-validation

Conversation

@tomek-tursa-sb

Copy link
Copy Markdown
Contributor

Extends validation response for yaml/json rulesets with the line number of the error.
Propagates changes also to linter.

@tomek-tursa-sb tomek-tursa-sb requested a review from a team as a code owner April 29, 2026 10:11
@tomek-tursa-sb tomek-tursa-sb marked this pull request as draft April 29, 2026 10:11
@tomek-tursa-sb tomek-tursa-sb marked this pull request as ready for review April 30, 2026 06:20
@tomek-tursa-sb tomek-tursa-sb merged commit 04c1db3 into develop May 7, 2026
8 checks passed
@tomek-tursa-sb tomek-tursa-sb deleted the feat/add-error-line-number-for-yaml-and-json-validation branch May 7, 2026 14:23
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 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

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.23.0 🎉

The release is available on @stoplight/spectral-core-1.23.0

Your semantic-release bot 📦🚀

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.

4 participants