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

fix(severity): default severity should be warning #74

Merged
merged 3 commits into from
Dec 21, 2018

Conversation

casserni
Copy link
Contributor

@casserni casserni commented Dec 21, 2018

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Current: if no rule.severity always default to ValidationSeverity.Error
Expected/Fixed: if no rule.severity always default to label corresponding to ValidationSeverity.Error

Current: if no rule.severityLabel always default to ValidationSeverityLabel.Warn
Expected/Fixed: if no rule.severityLabel always default to label corresponding to rule.severity

Does this PR introduce a breaking change?

No

@casserni casserni requested a review from lottamus December 21, 2018 17:11
@codeclimate
Copy link

codeclimate bot commented Dec 21, 2018

Code Climate has analyzed commit 591e3fb and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (90% is the threshold).

This pull request will bring the total coverage in the repository to 95.2% (0.1% change).

View more on Code Climate.

@casserni
Copy link
Contributor Author

the important piece that changed is https://github.com/stoplightio/spectral/pull/74/files#diff-105a25db2fd03476fc2d5672bc256a8cR87

the rest is just updating the snapshots to be correct

@lottamus lottamus merged commit 11fa690 into next Dec 21, 2018
@lottamus lottamus deleted the SL-1022/default-severity-label branch December 21, 2018 18:10
lottamus pushed a commit that referenced this pull request Dec 21, 2018
* Add files via upload

* add logo

* Add files via upload

* Update README.md

* Add files via upload

* Update README.md

* Delete spectral-banner.png

* Delete spectral-banner-v3.png

* Delete spectral-banner-left.png

* add image folder with logo

* add logo

* update img

* test(rules): update failing rules to use snapshots (#68)

* fix(severity): default severity should be warning (#74)

* fix(severitylabel): deafult severity label based on rule severity

* fix(tests): update tests to use default warning severity

* fix(ruleset): add rule type to path-keys-no-trailing-slash
@marbemac
Copy link
Contributor

🎉 This PR is included in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

3 participants