This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
standards.json
64 lines (64 loc) · 1.84 KB
/
standards.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"require": "strict",
"rules": [
{
"name": "operation-summary-uses-video-term-instead-of-clip",
"object": "*",
"enabled": true,
"description": "operation summaries should use the term `video` instead of `clip`",
"notContain": {
"properties": ["summary"],
"pattern": {
"value": "clip",
"flags": "gi"
}
}
},
{
"name": "operation-summary-should-not-have-trailing-punctuation",
"object": "*",
"enabled": true,
"description": "operation summaries should not have trailing punctuation",
"pattern": {
"property": "summary",
"value": "^[a-zA-Z0-9 ']+$"
}
},
{
"name": "schema-title-uses-video-term-instead-of-clip",
"object": "*",
"enabled": false,
"description": "schema titles should use the term `video` instead of `clip`",
"notContain": {
"properties": ["title"],
"pattern": {
"value": "clip",
"flags": "gi"
}
}
},
{
"name": "response-description-uses-video-term-instead-of-clip",
"object": "response",
"enabled": true,
"description": "response descriptions should use the term `video` instead of `clip`",
"notContain": {
"properties": ["description"],
"pattern": {
"value": "clip",
"flags": "gi"
}
}
},
{
"name": "response-description-should-should-have-trailing-punctuation",
"object": "response",
"enabled": true,
"pattern": {
"property": "description",
"split": "\n",
"value": "^(There are [a-z]+ ways that this status code can be encountered:|(.*)[.?!])$"
}
}
]
}