Skip to content

Commit 7a4ff4e

Browse files
committed
chore: move rules to the root
1 parent 431d79e commit 7a4ff4e

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

‎redocly.yaml‎

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,37 @@ extends:
33
apis:
44
cafe-api:
55
root: "./openapi/cafe.yaml"
6-
rules:
7-
# Rules of the Reunite project starter template, so Cafe stays usable as starter content.
8-
operation-tag-defined: error
9-
no-invalid-schema-examples: error
10-
no-invalid-media-type-examples: error
11-
scalar-property-missing-example: error
12-
rule/operation-summary-sentence-case:
13-
subject:
14-
type: Operation
15-
property: summary
16-
message: Operation summary must be sentence cased.
17-
assertions:
18-
pattern: /^[A-Z]\S*(\s+(?!\(?[A-Z][a-z]+\b)\S+)*$/ # Sentence case; acronyms like OAuth2 and RFC are allowed
19-
rule/example-summary-sentence-case:
20-
subject:
21-
type: Example
22-
property: summary
23-
message: Example summary must be sentence cased.
24-
assertions:
25-
pattern: /^[A-Z]\S*(\s+(?!\(?[A-Z][a-z]+\b)\S+)*$/ # Sentence case; acronyms like OAuth2 and RFC are allowed
26-
rule/operation-summary:
27-
subject:
28-
type: Operation
29-
property: summary
30-
where:
31-
- subject:
32-
type: Paths
33-
assertions:
34-
defined: true
6+
7+
rules:
8+
operation-tag-defined: error
9+
no-invalid-schema-examples: error
10+
no-invalid-media-type-examples: error
11+
scalar-property-missing-example: error
12+
rule/operation-summary-sentence-case:
13+
subject:
14+
type: Operation
15+
property: summary
16+
message: Operation summary must be sentence cased.
17+
assertions:
18+
pattern: /^[A-Z]\S*(\s+(?!\(?[A-Z][a-z]+\b)\S+)*$/ # Sentence case; acronyms like OAuth2 and RFC are allowed
19+
rule/example-summary-sentence-case:
20+
subject:
21+
type: Example
22+
property: summary
23+
message: Example summary must be sentence cased.
24+
assertions:
25+
pattern: /^[A-Z]\S*(\s+(?!\(?[A-Z][a-z]+\b)\S+)*$/ # Sentence case; acronyms like OAuth2 and RFC are allowed
26+
rule/operation-summary:
27+
subject:
28+
type: Operation
29+
property: summary
30+
where:
31+
- subject:
32+
type: Paths
3533
assertions:
36-
pattern: /^(Create|Get|Retrieve|Replace|Update|Delete|Login|Send|Callback|Cancel|List|Partially update|Revoke).*[^\.]$/
34+
defined: true
35+
assertions:
36+
pattern: /^(Create|Get|Retrieve|Replace|Update|Delete|Login|Send|Callback|Cancel|List|Partially update|Revoke).*[^\.]$/
3737

3838
logo:
3939
srcSet: "./images/cafe-logo-black.svg light, ./images/cafe-logo-white.svg dark"

0 commit comments

Comments
 (0)