-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocstring_schema.json
47 lines (47 loc) · 1.41 KB
/
docstring_schema.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
{
"version": "1.0.0",
"schema_name": "google_style_docstrings",
"schema": {
"type": "object",
"properties": {
"docstring": {
"type": "string",
"minLength": 1
},
"parameters": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]*$"
},
"type": {
"type": "string"
},
"description": {
"type": "string",
"minLength": 5
}
},
"required": ["name", "type", "description"]
}
},
"returns": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"description": {
"type": "string",
"minLength": 5
}
},
"required": ["type", "description"]
}
},
"required": ["docstring", "parameters", "returns"]
}
}