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

test: warn -> error #873

Merged
merged 1 commit into from
Dec 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-harness/scenarios/custom-ref-resolver.scenario
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ rules:
====command====
{bin} lint {document} --ruleset {asset:ruleset} --resolver ./resolvers/custom.js --ignore-unknown-format
====stdout====
No results with a severity of 'warn' or higher found!
No results with a severity of 'error' or higher found!
2 changes: 1 addition & 1 deletion test-harness/scenarios/help-no-document.scenario
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Options:
--resolver path to custom json-ref-resolver instance [string]
--ruleset, -r path/URL to a ruleset file [string]
--skip-rule, -s ignore certain rules if they are causing trouble [string]
--fail-severity, -F results of this level or above will trigger a failure exit code [string] [choices: "error", "warn", "info", "hint"] [default: "warn"]
--fail-severity, -F results of this level or above will trigger a failure exit code [string] [choices: "error", "warn", "info", "hint"] [default: "error"]
--display-only-failures, -D only output results equal to or greater than --fail-severity [boolean] [default: false]
--ignore-unknown-format do not warn about unmatched formats [boolean] [default: false]
--verbose, -v increase verbosity [boolean]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ info: {}
====command====
{bin} lint {document} --ignore-unknown-format
====stdout====
No results with a severity of 'warn' or higher found!
No results with a severity of 'error' or higher found!
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ components:
{bin} lint --ruleset ./rulesets/parameter-description.oas3.yaml {document}
====stdout====
OpenAPI 3.x detected
No results with a severity of 'warn' or higher found!
No results with a severity of 'error' or higher found!
2 changes: 1 addition & 1 deletion test-harness/scenarios/valid-no-errors.oas2.scenario
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tags:
{bin} lint {document}
====stdout====
OpenAPI 2.0 (Swagger) detected
No results with a severity of 'warn' or higher found!
No results with a severity of 'error' or higher found!