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

chore(ruleset): use human friendly severity levels #1099

Closed
wants to merge 1 commit into from
Closed

chore(ruleset): use human friendly severity levels #1099

wants to merge 1 commit into from

Conversation

nulltoken
Copy link
Contributor

Checklist

  • Tests added / updated
  • Docs added / updated

Does this PR introduce a breaking change?

  • Yes
  • No

@@ -8,3 +11,11 @@ export const buildRulesetExceptionCollectionFrom = (
source[loc] = rules;
return source;
};

export const normalizeSeverityFromJsonRuleset = (severity: string | number | undefined): DiagnosticSeverity => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we have a very similar function somewhere.
Most likely in merger, suggest consolidating.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@P0lip I'm going to table this until #974 is merged. The way the oas3 tests are written make this change especially painful... Too painful.

Either I'm approaching this from the wrong angle or some refactoring should be done.

🤔

@nulltoken nulltoken mentioned this pull request Apr 17, 2020
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants