-
Notifications
You must be signed in to change notification settings - Fork 6
/
request.json
41 lines (41 loc) · 1011 Bytes
/
request.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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A JSON RPC 2.0 request",
"oneOf": [
{
"description": "An individual request",
"$ref": "#/definitions/request"
},
{
"description": "An array of requests",
"type": "array",
"items": {
"$ref": "#/definitions/request"
}
}
],
"definitions": {
"request": {
"type": "object",
"required": ["jsonrpc", "method"],
"properties": {
"jsonrpc": {
"enum": ["2.0"]
},
"method": {
"type": "string"
},
"id": {
"type": ["string", "number", "null"],
"note": [
"While allowed, null should be avoided: http://www.jsonrpc.org/specification#id1",
"While allowed, a number with a fractional part should be avoided: http://www.jsonrpc.org/specification#id2"
]
},
"params": {
"type": ["array", "object"]
}
}
}
}
}