{
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "RpcRequest",
  "description": "A JSON RPC request",
  "type": "object",
  "properties": {
    "jsonrpc": { "enum": ["2.0"] },
    "id": {
      "description": "Distinguish responses from other messages",
      "oneOf": [
        {"type": "number"},
        {"type": "string"},
        {"type": "null"}
      ]
    },
    "method": {
      "description": "The name of the method to be invoked",
      "type": "string"
    },
    "params": {
      "description": "Parameter values to be used during the invocation of the method",
      "oneOf": [
        {"type": "object"},
        {"type": "array"}
      ]
    }
  },
  "required": ["jsonrpc", "method", "id"],
  "additionalProperties": false
}
