-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathschema.json
More file actions
63 lines (63 loc) · 1.84 KB
/
schema.json
File metadata and controls
63 lines (63 loc) · 1.84 KB
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
{
"$id": "method",
"title": "JSON RPC",
"description": "A Json RPC Generator schema",
"type": "object",
"properties": {
"title": {
"type": "string",
"title": "API's title",
"description": "The title of the API. Will be used to generated file name"
},
"description": {
"type": "string",
"title": "API's description",
"description": "API's description. Will be used to generate Comment"
},
"functions": {
"type": "array",
"title": "API's functions",
"description": "List of functions",
"items": {
"type": "object",
"title": "Function",
"required": ["name", "description", "params", "returns", "rpc_method"],
"properties": {
"name": {
"type": "string",
"title": "Function name",
"description": "Name of the function"
},
"description": {
"type": "string",
"title": "Function description",
"description": "Function description"
},
"rpc_method": {
"type": "string",
"title": "RPC method",
"description": "RPC method"
},
"params": {
"type": "array",
"title": "Function parameters",
"description": "List of parameters",
"items": {
"$ref": "./schemas/param.json"
}
},
"returns": {
"type": "array",
"title": "Function returns",
"description": "Function returns",
"requited": ["name", "type", "description"],
"items": {
"$ref": "./schemas/return.json"
}
}
}
}
}
},
"required": ["title", "description", "functions"]
}