Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rule): remove 'when' #614

Merged
merged 2 commits into from
Oct 24, 2019
Merged

feat(rule): remove 'when' #614

merged 2 commits into from
Oct 24, 2019

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Sep 30, 2019

BREAKING CHANGE: 'when' is gone. You can write a jsonpath extension instead

Closes #585

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

Don't know 🤔
@philsturgeon @marbemac do we treat it as breaking or not?
I think we made a change to rules (like removed a rule) in the past, and didn't mark it as breaking.

@P0lip P0lip self-assigned this Sep 30, 2019
@philsturgeon philsturgeon added the breaking Pull requests that introduce a breaking change label Oct 1, 2019
@philsturgeon
Copy link
Contributor

@P0lip we have never documented this functionality so we could potentially release this as not a breaking change. If we want to play it cautious (Hyrum's Law is a thing) we can bundle this with another breaking change: clearing out the old TS cruf we've had floating around.

https://github.com/stoplightio/spectral/issues?q=is%3Aissue+is%3Aopen+label%3Abreaking

My recommendation would be to hold off on merging this, get v4.2.0 out in the next few days if we consider it ready, then consider develop (and therefore the next release) v5.0 so we can make these breaking changes and clear out a bunch of junk, along with this undocumented feature.

BREAKING CHANGE: 'when' is gone. You can write a jsonpath extension instead
@P0lip P0lip force-pushed the feat/remove-when branch from ef448b1 to 70fc34d Compare October 8, 2019 18:05
@philsturgeon
Copy link
Contributor

Seeing as we have a bunch of breaks coming in lets merge this, and #561 and all the other breaks and make a 5.0.

@philsturgeon philsturgeon merged commit 8c1aedd into develop Oct 24, 2019
@philsturgeon philsturgeon deleted the feat/remove-when branch October 24, 2019 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Pull requests that introduce a breaking change tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rule: remove when
2 participants