tokencrawler/.venv/lib/python3.9/site-packages/jsonrpcserver/request-schema.json
2022-03-17 22:16:30 +01:00

39 lines
1.2 KiB
JSON

{
"$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" },
"minItems": 1
}
],
"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" ]
}
},
"additionalProperties": false
}
}
}