-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/1871-clarify-behavior
- Loading branch information
Showing
12 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Test API | ||
version: 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
extends: | ||
- ruleset.yaml | ||
|
||
apis: | ||
main: | ||
root: ./openapi.yaml | ||
rules: | ||
rule/test-license: warn # should not be highlighted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
rules: | ||
rule/test-license: # the default severity (error) of this configurable rule will be overwritten in redocly.yaml | ||
subject: | ||
type: Info | ||
property: license | ||
assertions: | ||
defined: true | ||
rule/test-description: | ||
subject: | ||
type: Info | ||
property: description | ||
assertions: | ||
defined: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`E2E lint assertions-severity-override 1`] = ` | ||
validating openapi.yaml... | ||
[1] openapi.yaml:3:3 at #/info/description | ||
rule/test-description failed because the Info description didn't meet the assertions: Should be defined | ||
1 | openapi: 3.1.0 | ||
2 | info: | ||
3 | title: Test API | ||
| ^^^^^^^^^^^^^^^ | ||
4 | version: 1.0.0 | ||
| ^^^^^^^^^^^^^^ | ||
5 | | ||
Error was generated by the rule/test-description rule. | ||
[2] openapi.yaml:3:3 at #/info/license | ||
rule/test-license failed because the Info license didn't meet the assertions: Should be defined | ||
1 | openapi: 3.1.0 | ||
2 | info: | ||
3 | title: Test API | ||
| ^^^^^^^^^^^^^^^ | ||
4 | version: 1.0.0 | ||
| ^^^^^^^^^^^^^^ | ||
5 | | ||
Warning was generated by the rule/test-license rule. | ||
openapi.yaml: validated in <test>ms | ||
❌ Validation failed with 1 error and 1 warning. | ||
run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file. | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
"cli-1.25": "npm:@redocly/[email protected]", | ||
"cli-1.26": "npm:@redocly/[email protected]", | ||
"cli-1.27": "npm:@redocly/[email protected]", | ||
"cli-1.28": "npm:@redocly/[email protected]", | ||
"cli-next": "file:../redocly-cli.tgz" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters