-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into chore/v1.0.0-beta.107
- Loading branch information
Showing
7 changed files
with
136 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apis: | ||
main: | ||
root: ./openapi.yaml | ||
|
||
styleguide: | ||
rules: | ||
assert/summary-non-empty: | ||
subject: Operation | ||
property: summary | ||
message: Operation summary should not be empty | ||
nonEmpty: true | ||
severity: off | ||
extends: [] |
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,29 @@ | ||
openapi: 3.1.0 | ||
servers: | ||
- url: http://example.xyz | ||
info: | ||
license: | ||
name: test licence | ||
url: http://example.xyz | ||
title: Example OpenAPI 3 definition. | ||
description: Example description | ||
version: '1.0' | ||
contact: | ||
name: qa | ||
url: https://swagger.io/specification/#definitions | ||
email: email@redoc.ly | ||
|
||
paths: | ||
/pet/findByStatus: | ||
get: | ||
operationId: example | ||
summary: | ||
tags: | ||
- foo | ||
- baz | ||
- bar | ||
responses: | ||
'200': | ||
description: example description | ||
'404': | ||
description: example description |
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,11 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`E2E lint assertions-non-empty-off 1`] = ` | ||
validating /openapi.yaml... | ||
/openapi.yaml: validated in <test>ms | ||
Woohoo! Your OpenAPI definition is valid. 🎉 | ||
`; |
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 @@ | ||
apis: | ||
main: | ||
root: ./openapi.yaml | ||
|
||
styleguide: | ||
rules: | ||
assert/summary-non-empty: | ||
subject: Operation | ||
property: summary | ||
message: Operation summary should not be empty | ||
nonEmpty: true | ||
severity: warn | ||
extends: [] |
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,29 @@ | ||
openapi: 3.1.0 | ||
servers: | ||
- url: http://example.xyz | ||
info: | ||
license: | ||
name: test licence | ||
url: http://example.xyz | ||
title: Example OpenAPI 3 definition. | ||
description: Example description | ||
version: '1.0' | ||
contact: | ||
name: qa | ||
url: https://swagger.io/specification/#definitions | ||
email: email@redoc.ly | ||
|
||
paths: | ||
/pet/findByStatus: | ||
get: | ||
operationId: example | ||
summary: | ||
tags: | ||
- foo | ||
- baz | ||
- bar | ||
responses: | ||
'200': | ||
description: example description | ||
'404': | ||
description: example description |
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,26 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`E2E lint assertions-non-empty-warn 1`] = ` | ||
validating /openapi.yaml... | ||
[1] openapi.yaml:20:7 at #/paths/~1pet~1findByStatus/get/summary | ||
Operation summary should not be empty | ||
18 | get: | ||
19 | operationId: example | ||
20 | summary: | ||
| ^^^^^^^^ | ||
21 | tags: | ||
22 | - foo | ||
Warning was generated by the summary-non-empty assertion rule. | ||
/openapi.yaml: validated in <test>ms | ||
Woohoo! Your OpenAPI definition is valid. 🎉 | ||
You have 1 warning. | ||
`; |
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